More refactor of login page

This commit is contained in:
Ricardo Markiewicz
2020-01-30 00:14:31 -03:00
parent b103fde276
commit 94f5f5cd88
+1 -11
View File
@@ -16,11 +16,8 @@ class LoginPage extends StatelessWidget {
return Scaffold( return Scaffold(
body: SafeArea( body: SafeArea(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[ children: <Widget>[
Expanded(
flex: 1,
child: Container(),
),
Text( Text(
localizations.t('login.title'), localizations.t('login.title'),
style: Theme.of(context).textTheme.display1, style: Theme.of(context).textTheme.display1,
@@ -39,10 +36,6 @@ class LoginPage extends StatelessWidget {
localizations.t('login.subtitle'), localizations.t('login.subtitle'),
style: Theme.of(context).textTheme.caption, style: Theme.of(context).textTheme.caption,
), ),
Expanded(
flex: 1,
child: Container(),
),
Consumer<LoginState>( Consumer<LoginState>(
builder: (BuildContext context, LoginState value, Widget child) { builder: (BuildContext context, LoginState value, Widget child) {
if (value.isLoading()) { if (value.isLoading()) {
@@ -76,9 +69,6 @@ class LoginPage extends StatelessWidget {
), ),
), ),
), ),
Expanded(
child: Container(),
),
Padding( Padding(
padding: const EdgeInsets.all(32.0), padding: const EdgeInsets.all(32.0),
child: LegalNoticeWidget(), child: LegalNoticeWidget(),