BUG: Fix blank screen on load
This commit is contained in:
parent
a2d1bebca1
commit
04c92804b8
1 changed files with 8 additions and 1 deletions
|
|
@ -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,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue