Finished login screen

This commit is contained in:
Mariano Uvalle 2019-03-08 21:53:44 -06:00
parent 3e44aa2fe4
commit 888c26283f

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../widgets/logo.dart'; import '../widgets/logo.dart';
import '../widgets/gradient_button.dart'; import '../widgets/gradient_button.dart';
@ -14,11 +15,14 @@ class LoginScreen extends StatelessWidget {
child: Center( child: Center(
child: Logo(), child: Logo(),
), ),
flex: 3, flex: 2,
), ),
Expanded( Expanded(
child: Center( child: Center(
child: GradientButton( child: GradientButton(
height: 50,
width: 310,
radius: 25,
child: getButtonBody(), child: getButtonBody(),
), ),
), ),
@ -32,6 +36,8 @@ class LoginScreen extends StatelessWidget {
Widget getButtonBody() { Widget getButtonBody() {
return Row( return Row(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Text( Text(
'LOGIN', 'LOGIN',
@ -41,6 +47,14 @@ class LoginScreen extends StatelessWidget {
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
SizedBox(
width: 10,
),
Icon(
FontAwesomeIcons.google,
color: Colors.white,
size: 24,
),
], ],
); );
} }