File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'dart:ui';
33import 'package:audio_service/audio_service.dart' ;
44import 'package:dio/dio.dart' ;
55import 'package:flutter/foundation.dart' ;
6+ import 'package:flutter/material.dart' show Colors;
67import 'package:flutter_secure_storage/flutter_secure_storage.dart' ;
78import 'package:local_notifier/local_notifier.dart' ;
89import 'package:matrix/matrix.dart' ;
@@ -42,9 +43,20 @@ void registerDependencies() {
4243 di.registerSingletonAsync <WindowManager >(() async {
4344 final wm = WindowManager .instance;
4445 await wm.ensureInitialized ();
45- wm
46- ..setMinimumSize (const Size (500 , 700 ))
47- ..setSize (const Size (950 , 820 ));
46+ await wm.waitUntilReadyToShow (
47+ const WindowOptions (
48+ backgroundColor: Colors .transparent,
49+ size: Size (950 , 820 ),
50+ minimumSize: Size (500 , 700 ),
51+ skipTaskbar: false ,
52+ titleBarStyle: TitleBarStyle .hidden,
53+ ),
54+ () async {
55+ await windowManager.show ();
56+ await windowManager.focus ();
57+ },
58+ );
59+
4860 return wm;
4961 });
5062 }
You can’t perform that action at this time.
0 commit comments