mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Fix light theme issue
This commit is contained in:
parent
47dbb90640
commit
0c2f3a28d0
@ -84,25 +84,29 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.indigo.shade900,
|
||||
body: Center(
|
||||
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,
|
||||
),
|
||||
],
|
||||
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,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
@ -115,7 +119,7 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
|
||||
Widget _buildErrorWidget() {
|
||||
return Column(
|
||||
children: <Widget>[
|
||||
Icon(Icons.error),
|
||||
Icon(Icons.error, color: Colors.white),
|
||||
SizedBox(height: 30),
|
||||
Text(tr("Could not connect to server!")),
|
||||
SizedBox(
|
||||
|
Loading…
Reference in New Issue
Block a user