Skip to content

Commit

Permalink
fix display on win10 22h2
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyGuo committed Mar 4, 2024
1 parent 2ed3514 commit 9b5d90c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ Future<void> 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,
Expand Down

0 comments on commit 9b5d90c

Please sign in to comment.