disable acrylic effect for windows 10

This commit is contained in:
wgh19
2024-06-13 12:40:34 +08:00
parent 908c26d764
commit 593899af8c

View File

@@ -151,7 +151,7 @@ class MyApp extends StatelessWidget {
), ),
child: widget, child: widget,
); );
} else if (App.windowsVersion == 10) { } /* else if (App.windowsVersion == 10) {
flutter_acrylic.Window.setEffect( flutter_acrylic.Window.setEffect(
effect: flutter_acrylic.WindowEffect.acrylic, effect: flutter_acrylic.WindowEffect.acrylic,
dark: FluentTheme.of(context).brightness == dark: FluentTheme.of(context).brightness ==
@@ -164,7 +164,7 @@ class MyApp extends StatelessWidget {
), ),
child: widget, child: widget,
); );
} }*/
} }
return KeyEventListener(child: widget); return KeyEventListener(child: widget);