v1.1.0adwaita
Adwaita スタイル - Flutter アプリ用の GTK+ のデフォルトテーマ。
20いいね 14030日間ダウンロード70Pub ポイント
プラットフォーム情報なし
Flutter/Dart 用の Adwaita テーマの実装
{"sdk":"flutter"}^4.0.0以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Implementation of the adwaita color scheme found in libadwaita.
Inspired by the yaru theme for flutter.
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);
});
}
}
light_theme
dark_theme