Ubuntu Yaru Style - Distinct look and feel of the Ubuntu Desktop
To be able to use this package follow this steps:
-
Import yaru.dart
import 'package:yaru/yaru.dart';
-
Inside your
MaterialAppsetthemetoyarulightwhich is the standard light theme anddarkThemetoyaruDarkto get the yaru dark theme. ThedarkThemeproperty is used when you toggle your system theme to dark:MaterialApp( theme: yaruLight, darkTheme: yaruDark, home: Scaffold( appBar: AppBar( title: Text('Yaru Theme'), ), body: Container(), ), );
Yaru comes in 7x2 different versions:
yaruLight&yaruDarkyaruXubuntuLight&yaruXubuntuDarkyaruKubuntuLight&yaruKubuntuDarkyaruLubuntuLight&yaruLubuntuDarkyaruUbuntuStudioLight&yaruUbuntuStudioDarkyaruMateLight&yaruMateDarkyaruUbuntuBudgieLight&yaruUbuntuBudgieDark
We welcome contributions! See the contribution guide for more details.
Ubuntu Yaru Style requires Flutter 2. If you get an error about the current Dart SDK version similar to
[yaru.dart] flutter pub get
Running "flutter pub get" in yaru.dart...
The current Dart SDK version is 2.12.0-281.0.dev.
Because yaru requires SDK version >=2.12.0 <3.0.0, version solving failed.
pub get failed (1; Because yaru 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

