fix: use exit(0) for instant window close
This commit is contained in:
@@ -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(),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user