mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Adapt initialize widget
This commit is contained in:
@ -11,6 +11,7 @@ import 'package:comunic/ui/routes/main_route/main_route.dart';
|
||||
import 'package:comunic/ui/routes/main_route/smartphone_route.dart';
|
||||
import 'package:comunic/ui/routes/main_route/tablet_route.dart';
|
||||
import 'package:comunic/ui/routes/welcome_route.dart';
|
||||
import 'package:comunic/ui/widgets/login_routes_theme.dart';
|
||||
import 'package:comunic/ui/widgets/safe_state.dart';
|
||||
import 'package:comunic/utils/flutter_utils.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
@ -113,38 +114,40 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
|
||||
|
||||
/// Build loading widget
|
||||
Widget _buildNonReadyWidget() {
|
||||
return Scaffold(
|
||||
backgroundColor: config().splashBackgroundColor,
|
||||
body: Center(
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
textStyle: TextStyle(color: Colors.white),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Spacer(
|
||||
flex: 4,
|
||||
),
|
||||
Text(
|
||||
tr("Comunic"),
|
||||
style: TextStyle(fontSize: 50),
|
||||
),
|
||||
Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
_error ? _buildErrorWidget() : _buildConnectingWidget(),
|
||||
Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
!isWeb
|
||||
? Text(tr("Version %version% - Build %build%", args: {
|
||||
"version": VersionHelper.info.version.toString(),
|
||||
"build": VersionHelper.info.buildNumber.toString()
|
||||
}))
|
||||
: Container(),
|
||||
Spacer(flex: 1),
|
||||
],
|
||||
return LoginRoutesTheme(
|
||||
child: Scaffold(
|
||||
backgroundColor: config().splashBackgroundColor,
|
||||
body: Center(
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
textStyle: TextStyle(color: Colors.white),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Spacer(
|
||||
flex: 4,
|
||||
),
|
||||
Text(
|
||||
config().appName,
|
||||
style: TextStyle(fontSize: 50),
|
||||
),
|
||||
Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
_error ? _buildErrorWidget() : _buildConnectingWidget(),
|
||||
Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
!isWeb
|
||||
? Text(tr("Version %version% - Build %build%", args: {
|
||||
"version": VersionHelper.info.version.toString(),
|
||||
"build": VersionHelper.info.buildNumber.toString()
|
||||
}))
|
||||
: Container(),
|
||||
Spacer(flex: 1),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user