Ubuntu-Cinnamon-Remix/yarucinnamon.dart](https://pub.dev/packages/yarucinnamon)
Ubuntu Cinnamon Remix Yaru Cinnamon Style - Distinct look and feel of the Ubuntu Cinnamon Desktop
Using Yaru Cinnamon
To be able to use this package follow this steps:
-
Make you sure when you import this package
as
yarucinnamonimport 'package:yarucinnamon/yarucinnamon.dart' as yarucinnamon;
-
Inside your
MaterialApp
settheme
toyarucinnamon.lightTheme
which is the standard light theme anddarkTheme
toyarucinnamon.darkTheme
to get the yarucinnamon dark theme. ThedarkTheme
property is used when you toggle your system theme to dark:MaterialApp( theme: yarucinnamon.lightTheme, darkTheme: yarucinnamon.darkTheme, home: Scaffold( appBar: AppBar( title: Text('Yaru Cinnamon Theme'), ), body: Container(), ), );
Contributing to yarucinnamon.dart
We welcome contributions! See the contribution guide for more details.
Flutter Version
Ubuntu Yaru Cinnamon Style requires Flutter 2. If you get an error about the current Dart SDK version similar to
[yarucinnamon.dart] flutter pub get
Running "flutter pub get" in yarucinnamon.dart...
The current Dart SDK version is 2.12.0-281.0.dev.
Because yarucinnamon requires SDK version >=2.12.0 <3.0.0, version solving failed.
pub get failed (1; Because yarucinnamon requires SDK version >=2.12.0 <3.0.0, version solving failed.)
exit code 1
please try upgrading to Flutter 2 by running
flutter upgrade