Git Product home page Git Product logo

yaru.dart_desktop's Introduction

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. Import yaru.dart

    import 'package:yaru/yaru.dart';
  3. Inside your MaterialApp set theme to yarulight which is the standard light theme and darkTheme to yaruDark to get the yaru dark theme. The darkTheme property 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.dart flavors

Yaru comes in 7x2 different versions:

  • yaruLight & yaruDark
  • yaruXubuntuLight & yaruXubuntuDark
  • yaruKubuntuLight & yaruKubuntuDark
  • yaruLubuntuLight & yaruLubuntuDark
  • yaruUbuntuStudioLight & yaruUbuntuStudioDark
  • yaruMateLight & yaruMateDark
  • yaruUbuntuBudgieLight & yaruUbuntuBudgieDark

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 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.