yaru 0.2.0 copy "yaru: ^0.2.0" to clipboard
yaru: ^0.2.0 copied to clipboard

outdated

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:yaru/yaru.dart';
import 'package:yaru_example/view/home_page.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  var theme = yaruLight;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Yaru Example',
      theme: theme,
      home: HomePage(
          themeChanged: (themeName) => setState(() {
                if (themeName == 'Yaru-light') {
                  theme = yaruLight;
                } else if (themeName == 'Yaru-dark') {
                  theme = yaruDark;
                }
              })),
    );
  }
}
148
likes
0
pub points
93%
popularity

Publisher

verified publisherubuntu.com

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on yaru