An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Adwaita Theme

![CI](https://github.com/gtk-flutter/adwaita/actions/workflows/ci.yml/badge.svg)
[![GitHub Super-Linter](https://github.com/gtk-flutter/adwaita/workflows/Lint%20Code%20Base/badge.svg)](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

![light_theme](https://raw.githubusercontent.com/gtk-flutter/adwaita/main/images/light.png)

![dark_theme](https://raw.githubusercontent.com/gtk-flutter/adwaita/main/images/dark.png)