adwaita 0.0.3 copy "adwaita: ^0.0.3" to clipboard
adwaita: ^0.0.3 copied to clipboard

outdated

Implementation of libadwaita for flutter/dart.

Implementation of the adwaita color scheme found in libadwaita.

Inspired by the yaru theme for flutter.

Usage #

import 'package:flutter/material.dart';
import 'package:adwaita/adwaita.dart' as adwaita;

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  final ValueNotifier<ThemeMode> themeNotifier = ValueNotifier(ThemeMode.light);

  MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ValueListenableBuilder<ThemeMode>(
        valueListenable: themeNotifier,
        builder: (_, ThemeMode currentMode, __) {
          return MaterialApp(
              theme: adwaita.lightTheme,
              darkTheme: adwaita.darkTheme,
              debugShowCheckedModeBanner: false,
              home: MyHomePage(themeNotifier: themeNotifier),
              themeMode: currentMode);
        });
  }
}
18
likes
0
pub points
77%
popularity

Publisher

unverified uploader

Implementation of libadwaita for flutter/dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on adwaita