add web support
This commit is contained in:
@@ -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);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user