gtk 1.0.0-rc.8 gtk: ^1.0.0-rc.8 copied to clipboard
Implements GTK Widgets, themes and titlebar buttons in Flutter. Based on the GNOME HIG
import 'package:flutter/material.dart';
import 'package:gtk/gtk.dart';
import 'home_page.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, __) => MaterialApp(
darkTheme: adwaitaDark(context),
theme: adwaitaLight(context),
debugShowCheckedModeBanner: false,
home: MyHomePage(themeNotifier: themeNotifier),
themeMode: currentMode),
);
}
}