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

Adwaita style - The default theme for GTK+ for your Flutter app.

Adwaita Theme #

CI GitHub Super-Linter

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';

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: AdwaitaThemeData.light(),
              darkTheme: AdwaitaThemeData.dark(),
              debugShowCheckedModeBanner: false,
              home: MyHomePage(themeNotifier: themeNotifier),
              themeMode: currentMode);
        });
  }
}

Examples #

light_theme

dark_theme

19
likes
150
points
127
downloads

Publisher

unverified uploader

Weekly Downloads

Adwaita style - The default theme for GTK+ for your Flutter app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

flutter

More

Packages that depend on adwaita