From ffcb3a6884145a157267e46208087dcc6d7cbb65 Mon Sep 17 00:00:00 2001 From: Rey Date: Sat, 12 Feb 2022 02:16:02 +0530 Subject: [PATCH] update darkmode --- lib/main.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 5345394..d2db8f6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -7,7 +7,7 @@ import 'package:fluent_ui/fluent_ui.dart'; import 'package:flutter_acrylic/flutter_acrylic.dart'; import 'package:system_theme/system_theme.dart'; -late bool darkMode; + void main() async { WidgetsFlutterBinding.ensureInitialized(); await Window.initialize(); @@ -37,6 +37,7 @@ class _MyAppState extends State { @override initState() { super.initState(); + // Window.setEffect( // effect: WindowEffect.acrylic, // color: SystemTheme.accentInstance.accent, @@ -45,7 +46,7 @@ class _MyAppState extends State { @override Widget build(BuildContext context) { - final bool isDark = darkMode ; + final bool isDark = true; return FluentApp( title: 'Cowin Smart Print',