libadwaita 1.0.0-rc.0 copy "libadwaita: ^1.0.0-rc.0" to clipboard
libadwaita: ^1.0.0-rc.0 copied to clipboard

outdated

Unofficial implementation of Libadwaita Widgets in Flutter.

example/lib/main.dart

import 'home_page.dart';
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);
        });
  }
}
79
likes
0
pub points
71%
popularity

Publisher

verified publisherprateeksu.blogspot.com

Unofficial implementation of Libadwaita Widgets in Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dbus, flutter, gsettings, popover

More

Packages that depend on libadwaita