add web support

This commit is contained in:
Ricardo Markiewicz
2020-07-14 15:01:53 -03:00
parent ce541cea23
commit 47fc06afca
15 changed files with 260 additions and 67 deletions
+3 -9
View File
@@ -21,10 +21,7 @@ class LoginPage extends StatelessWidget {
children: <Widget>[
Text(
localizations.t('login.title'),
style: Theme
.of(context)
.textTheme
.display1,
style: Theme.of(context).textTheme.display1,
),
Padding(
padding: const EdgeInsets.all(32.0),
@@ -38,10 +35,7 @@ class LoginPage extends StatelessWidget {
),
Text(
localizations.t('login.subtitle'),
style: Theme
.of(context)
.textTheme
.caption,
style: Theme.of(context).textTheme.caption,
),
Consumer<LoginState>(
builder: (BuildContext context, LoginState value, Widget child) {
@@ -64,7 +58,7 @@ class LoginPage extends StatelessWidget {
backgroundColor: Color(0xff4285F4),
child: Icon(FontAwesomeIcons.google),
onPressed: () {
Provider.of<LoginState>(context)
Provider.of<LoginState>(context, listen: false)
.login(LoginProvider.GOOGLE);
},
),