fix: handle mpv end-file errors with global snackbar

This commit is contained in:
edde746
2026-03-11 09:29:16 +01:00
parent 580c1d82e5
commit 3c491be690
7 changed files with 68 additions and 13 deletions
+8
View File
@@ -28,6 +28,7 @@ import 'providers/offline_mode_provider.dart';
import 'providers/offline_watch_provider.dart';
import 'providers/companion_remote_provider.dart';
import 'providers/shader_provider.dart';
import 'utils/snackbar_helper.dart';
import 'watch_together/watch_together.dart';
import 'services/multi_server_manager.dart';
import 'services/offline_watch_sync_service.dart';
@@ -408,6 +409,13 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
themeMode: themeProvider.materialThemeMode,
navigatorObservers: [routeObserver, BackKeySuppressorObserver()],
home: const OrientationAwareSetup(),
builder: (context, child) => ScaffoldMessenger(
key: rootScaffoldMessengerKey,
child: Scaffold(
backgroundColor: Colors.transparent,
body: child,
),
),
),
),
);