🐛 Fix windows title bar issue
This commit is contained in:
		| @@ -66,7 +66,7 @@ class RhythmApp extends StatelessWidget { | |||||||
|   @override |   @override | ||||||
|   Widget build(BuildContext context) { |   Widget build(BuildContext context) { | ||||||
|     return GetMaterialApp.router( |     return GetMaterialApp.router( | ||||||
|       title: 'DietaryGuard', |       title: 'RhythmBox', | ||||||
|       routerDelegate: router.routerDelegate, |       routerDelegate: router.routerDelegate, | ||||||
|       routeInformationParser: router.routeInformationParser, |       routeInformationParser: router.routeInformationParser, | ||||||
|       routeInformationProvider: router.routeInformationProvider, |       routeInformationProvider: router.routeInformationProvider, | ||||||
|   | |||||||
| @@ -39,11 +39,12 @@ class WindowManagerTools with WidgetsBindingObserver { | |||||||
|     WidgetsBinding.instance.addObserver(instance); |     WidgetsBinding.instance.addObserver(instance); | ||||||
|  |  | ||||||
|     await windowManager.waitUntilReadyToShow( |     await windowManager.waitUntilReadyToShow( | ||||||
|       const WindowOptions( |       WindowOptions( | ||||||
|         title: 'RhythmBox', |         title: 'RhythmBox', | ||||||
|         backgroundColor: Colors.transparent, |         backgroundColor: Colors.transparent, | ||||||
|         minimumSize: Size(300, 700), |         minimumSize: const Size(300, 700), | ||||||
|         titleBarStyle: TitleBarStyle.hidden, |         titleBarStyle: | ||||||
|  |             PlatformInfo.isMacOS ? TitleBarStyle.hidden : TitleBarStyle.normal, | ||||||
|         center: true, |         center: true, | ||||||
|       ), |       ), | ||||||
|       () async { |       () async { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user