mirror of
https://github.com/ubuntu/archive_yaru.dart.git
synced 2025-10-26 12:02:34 +01:00
No description
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github | ||
| doc/readme | ||
| example | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| pubspec.yaml | ||
| README.md | ||
yaru.dart implements the Ubuntu Yaru design and Canonical Vanilla Design as a Flutter theme for material.dart.
Test the theme in your browser - HERE
Using Yaru
To be able to use this package follow this steps:
-
Import yaru.dart
import 'package:yaru/yaru.dart'; -
Create
YaruThemeYaruTheme( builder: (context, yaru, child) { return MaterialApp( theme: yaru.theme, darkTheme: yaru.darkTheme, home: Scaffold( appBar: AppBar( title: Text('Yaru Theme'), ), body: Container(), ), ); } );
Variants
Yaru comes in several variants. The YaruTheme widget detects the appropriate
flavor and accent color from the system on Linux, and defaults to YaruVariant.orange
on other platforms. Applications may choose a specific variant by manually
setting the variant propert.
YaruTheme(
data: YaruThemeData(
variant: YaruVariant.red,
),
child: ...
)
Contributing to yaru.dart
We welcome contributions! See the contribution guide for more details.

