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

outdated

Libadwaita's widgets for Flutter. Following Gnome HIG and available on all platforms.

example/lib/main.dart

import 'package:example/flap/flap_demo.dart';
import 'package:example/view_switcher/view_switcher_demo.dart';
import 'package:multi_window/multi_widget.dart';
import 'package:multi_window/multi_window.dart';

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

void main(List<String> args) async {
  WidgetsFlutterBinding.ensureInitialized();

  MultiWindow.init(args);
  runApp(MyApp());
}

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

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

  @override
  Widget build(BuildContext context) {
    return ValueListenableBuilder<ThemeMode>(
      valueListenable: themeNotifier,
      builder: (_, ThemeMode currentMode, __) {
        return MaterialApp(
            theme: AdwaitaThemeData.light(),
            darkTheme: AdwaitaThemeData.dark(),
            debugShowCheckedModeBanner: false,
            home: MultiWidget(
              {
                'flap': FlapDemo(),
                'view_switcher': ViewSwitcherDemo(),
              },
              fallback: MyHomePage(themeNotifier: themeNotifier),
            ),
            themeMode: currentMode);
      },
    );
  }
}
79
likes
0
pub points
71%
popularity

Publisher

verified publisherprateeksu.blogspot.com

Libadwaita's widgets for Flutter. Following Gnome HIG and available on all platforms.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dbus, flutter, gsettings

More

Packages that depend on libadwaita