Pub Package

Ubuntu Yaru Style - Distinct look and feel of the Ubuntu Desktop

Example app using Yaru light style Example app using Yaru dark style

Using Yaru

To be able to use this package follow this steps:

  1. Installation
  2. Make you sure when you import this package as yaru.
  3. Inside your MaterialApp you have to pass the yaru.theme which is the standard yaru theme.
      theme: yaru.theme,
      home: Scaffold(
        appBar: AppBar(
          title: Text('Yaru Theme'),
        body: Container(),

Contributing to yaru.dart

We welcome contributions! See the contribution guide for more details.

Flutter Version

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

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