From 9b5d90ca073b27933c438ef72153c070c1e432f9 Mon Sep 17 00:00:00 2001 From: onlyGuo <38489049+onlyGuo@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:26:52 +0800 Subject: [PATCH] fix display on win10 22h2 --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 5f456b1..4f76002 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -30,9 +30,10 @@ Future main() async { effect: WindowEffect.solid, color: Colors.transparent, ); + if(Platform.operatingSystemVersion.contains('(')){ var version = Platform.operatingSystemVersion.split('(')[1].split(')')[0].toLowerCase().replaceAll('build', '').trim(); - if(int.parse(version) > 17134){ + if(int.parse(version) > 19045){ await Window.setEffect( effect: WindowEffect.acrylic, color: Colors.transparent,