yarucinnamon 0.0.0-dev.10 copy "yarucinnamon: ^0.0.0-dev.10" to clipboard
yarucinnamon: ^0.0.0-dev.10 copied to clipboard

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:yarucinnamon/yarucinnamon.dart' as yarucinnamon;
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 = yarucinnamon.lightTheme;

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

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on yarucinnamon