mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Start to build Forez main route
This commit is contained in:
@ -105,11 +105,14 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (!_error && WebSocketHelper.isConnected())
|
||||
? (isTablet(context)
|
||||
? TabletRoute(key: mainControllerKey)
|
||||
: SmartphoneMainRoute(key: mainControllerKey))
|
||||
: _buildNonReadyWidget();
|
||||
if (_error || !WebSocketHelper.isConnected()) return _buildNonReadyWidget();
|
||||
|
||||
if (config().mainRouteBuilder != null)
|
||||
return config().mainRouteBuilder(context);
|
||||
|
||||
return isTablet(context)
|
||||
? TabletRoute(key: mainControllerKey)
|
||||
: SmartphoneMainRoute(key: mainControllerKey);
|
||||
}
|
||||
|
||||
/// Build loading widget
|
||||
|
Reference in New Issue
Block a user