https://github.com/gtk-flutter/adwaita
Implementation of the adwaita theme for flutter/dart
https://github.com/gtk-flutter/adwaita
adwaita dart flutter gnome gtk theme
Last synced: 6 months ago
JSON representation
Implementation of the adwaita theme for flutter/dart
- Host: GitHub
- URL: https://github.com/gtk-flutter/adwaita
- Owner: gtk-flutter
- License: mpl-2.0
- Created: 2021-11-14T20:20:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T16:46:12.000Z (over 1 year ago)
- Last Synced: 2024-04-24T07:05:42.131Z (about 1 year ago)
- Topics: adwaita, dart, flutter, gnome, gtk, theme
- Language: Dart
- Homepage: https://pub.dev/packages/adwaita
- Size: 158 KB
- Stars: 37
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Adwaita Theme

[](https://github.com/marketplace/actions/super-linter)Implementation of the adwaita color scheme found in [libadwaita](https://gitlab.gnome.org/GNOME/libadwaita).
Inspired by the [yaru theme](https://github.com/ubuntu/yaru.dart) for flutter.
## Usage
```dart
import 'package:flutter/material.dart';
import 'package:adwaita/adwaita.dart';void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final ValueNotifier themeNotifier = ValueNotifier(ThemeMode.light);MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return ValueListenableBuilder(
valueListenable: themeNotifier,
builder: (_, ThemeMode currentMode, __) {
return MaterialApp(
theme: AdwaitaThemeData.light(),
darkTheme: AdwaitaThemeData.dark(),
debugShowCheckedModeBanner: false,
home: MyHomePage(themeNotifier: themeNotifier),
themeMode: currentMode);
});
}
}
```## Examples

