diff --git a/Sources/justMUSIC/lib/main.dart b/Sources/justMUSIC/lib/main.dart index f694b2a..fef5370 100644 --- a/Sources/justMUSIC/lib/main.dart +++ b/Sources/justMUSIC/lib/main.dart @@ -29,6 +29,7 @@ import 'package:justmusic/model/User.dart' as userJustMusic; import 'firebase_options.dart'; import 'package:timezone/data/latest.dart' as tz; import 'package:intl/date_symbol_data_local.dart'; +import 'package:fullscreen_window/fullscreen_window.dart'; Future main() async { tz.initializeTimeZones(); @@ -63,8 +64,14 @@ class MyApp extends StatefulWidget { class _MyAppState extends State { late StreamSubscription user; + void setFullScreen(bool isFullScreen) { + FullScreenWindow.setFullScreen(isFullScreen); + } + + @override void initState() { + setFullScreen(true); super.initState(); } @@ -79,14 +86,12 @@ class _MyAppState extends State { Widget build(BuildContext context) { SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky); Paint.enableDithering = true; - final shortcuts = Map.of(WidgetsApp.defaultShortcuts) - ..remove(LogicalKeySet(LogicalKeyboardKey.escape)); + return ScreenUtilInit( useInheritedMediaQuery: true, builder: (context, child) { return MaterialApp( - shortcuts: shortcuts, color: bgColor, routes: { '/welcome': (context) => const WellcomeScreen(), diff --git a/Sources/justMUSIC/pubspec.lock b/Sources/justMUSIC/pubspec.lock index c22310d..bee011b 100644 --- a/Sources/justMUSIC/pubspec.lock +++ b/Sources/justMUSIC/pubspec.lock @@ -576,6 +576,14 @@ packages: url: "https://pub.dev" source: hosted version: "9.2.0" + fullscreen_window: + dependency: "direct main" + description: + name: fullscreen_window + sha256: fe3014f91bff16a82d142ba9d834980b8a84b4bb03347a92588d389ad92bd1d3 + url: "https://pub.dev" + source: hosted + version: "1.0.4" geolocator: dependency: "direct main" description: diff --git a/Sources/justMUSIC/pubspec.yaml b/Sources/justMUSIC/pubspec.yaml index a9f8bc1..df8b275 100644 --- a/Sources/justMUSIC/pubspec.yaml +++ b/Sources/justMUSIC/pubspec.yaml @@ -77,6 +77,7 @@ dependencies: cached_network_image: ^3.2.3 google_sign_in: ^6.1.4 flutter_launcher_icons: ^0.13.1 + fullscreen_window: ^1.0.3 dev_dependencies: flutter_test: diff --git a/Sources/justMUSIC/web/icons/icon-maskable-192.png b/Sources/justMUSIC/web/icons/icon-maskable-192.png index 54a99c6..eb9b4d7 100644 Binary files a/Sources/justMUSIC/web/icons/icon-maskable-192.png and b/Sources/justMUSIC/web/icons/icon-maskable-192.png differ