diff --git a/lib/main.dart b/lib/main.dart index e275e7b..ecf1acf 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,5 @@ +import 'package:flutter/foundation.dart'; + import 'home/home_screen.dart'; import 'status/status_screen.dart'; import 'files/files_screen.dart'; @@ -12,11 +14,17 @@ import 'package:window_size/window_size.dart'; void main() { WidgetsFlutterBinding.ensureInitialized(); - setWindowMinSize(const Size(800, 480)); - setWindowMaxSize(const Size(800, 480)); runApp(const Orion()); } +void macDebug() { + if (kDebugMode) { + setWindowTitle('Orion Debug - Prometheus mSLA'); + setWindowMinSize(const Size(800, 480)); + setWindowMaxSize(const Size(800, 480)); + } +} + /// The route configuration. final GoRouter _router = GoRouter( routes: [ @@ -76,9 +84,10 @@ class Orion extends StatelessWidget { @override Widget build(BuildContext context) { + if (Theme.of(context).platform == TargetPlatform.macOS) { + macDebug(); + } return SizedBox( - width: 800, - height: 480, child: MaterialApp.router( debugShowCheckedModeBanner: false, routerConfig: _router, diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 3e8483d..6d85b71 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -32,4 +32,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: ae543142af37865437ba92bdbda0c110b25e440b -COCOAPODS: 1.14.2 +COCOAPODS: 1.14.3