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(
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(),