BUG: Fix blank screen on load

This commit is contained in:
2025-10-07 09:49:18 +02:00
parent a2d1bebca1
commit 04c92804b8

View File

@@ -74,9 +74,16 @@ class _MzansiInnovationHubState extends State<MzansiInnovationHub> {
debugShowCheckedModeBanner: false,
routerConfig: widget.router,
builder: (context, child) {
if (child == null) {
return const Scaffold(
body: Center(
child: CircularProgressIndicator(),
),
);
}
return UpgradeAlert(
navigatorKey: widget.router.routerDelegate.navigatorKey,
child: child ?? const Text('Upgrade Alert'),
child: child,
);
},
);