fix: use exit(0) for instant window close

This commit is contained in:
edde746
2026-01-21 20:14:52 +01:00
parent ddf28a0d1e
commit 19049365cc
2 changed files with 2 additions and 25 deletions
-13
View File
@@ -57,8 +57,6 @@ void _absorbZeroOffsetPointerEvent(PointerEvent event) {
}
}
final ValueNotifier<bool> appClosing = ValueNotifier<bool>(false);
void main() async {
WidgetsFlutterBinding.ensureInitialized();
_installZeroOffsetPointerGuard(); // Workaround for iPadOS 26.1+ modal dismissal bug
@@ -257,17 +255,6 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
darkTheme: themeProvider.darkTheme,
themeMode: themeProvider.materialThemeMode,
navigatorObservers: [routeObserver],
builder: (context, child) {
return ValueListenableBuilder<bool>(
valueListenable: appClosing,
builder: (context, closing, _) {
if (!closing) {
return child ?? const SizedBox.shrink();
}
return const SizedBox.expand(child: ColoredBox(color: Colors.black));
},
);
},
home: const OrientationAwareSetup(),
),
),