More refactor of login page
This commit is contained in:
@@ -16,11 +16,8 @@ class LoginPage extends StatelessWidget {
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
flex: 1,
|
||||
child: Container(),
|
||||
),
|
||||
Text(
|
||||
localizations.t('login.title'),
|
||||
style: Theme.of(context).textTheme.display1,
|
||||
@@ -39,10 +36,6 @@ class LoginPage extends StatelessWidget {
|
||||
localizations.t('login.subtitle'),
|
||||
style: Theme.of(context).textTheme.caption,
|
||||
),
|
||||
Expanded(
|
||||
flex: 1,
|
||||
child: Container(),
|
||||
),
|
||||
Consumer<LoginState>(
|
||||
builder: (BuildContext context, LoginState value, Widget child) {
|
||||
if (value.isLoading()) {
|
||||
@@ -76,9 +69,6 @@ class LoginPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Container(),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(32.0),
|
||||
child: LegalNoticeWidget(),
|
||||
|
||||
Reference in New Issue
Block a user