Skip to content

Commit

Permalink
update darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyamMaity committed Feb 11, 2022
1 parent e83ca9d commit ffcb3a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -37,6 +37,7 @@ class _MyAppState extends State<MyApp> {
@override
initState() {
super.initState();

// Window.setEffect(
// effect: WindowEffect.acrylic,
// color: SystemTheme.accentInstance.accent,
Expand All @@ -45,7 +46,7 @@ class _MyAppState extends State<MyApp> {

@override
Widget build(BuildContext context) {
final bool isDark = darkMode ;
final bool isDark = true;

return FluentApp(
title: 'Cowin Smart Print',
Expand Down

0 comments on commit ffcb3a6

Please sign in to comment.