diff --git a/lib/components/login_form.dart b/lib/components/login_form.dart index 05ed064..44c4cf0 100644 --- a/lib/components/login_form.dart +++ b/lib/components/login_form.dart @@ -11,8 +11,6 @@ class LoginForm extends StatefulWidget { State createState() => LoginFormState(); } -final _formKey = GlobalKey(); - class LoginFormState extends State { bool _rememberMe = false; @@ -20,7 +18,7 @@ class LoginFormState extends State { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( + const Text( 'Email', style: kLabelStyle, ), @@ -29,16 +27,16 @@ class LoginFormState extends State { alignment: Alignment.centerLeft, decoration: kBoxDecorationStyle, height: 60.0, - child: TextField( + child: const TextField( keyboardType: TextInputType.emailAddress, - style: const TextStyle( + style: TextStyle( color: Colors.white, fontFamily: 'OpenSans', ), decoration: InputDecoration( border: InputBorder.none, - contentPadding: const EdgeInsets.only(top: 14.0), - prefixIcon: const Icon( + contentPadding: EdgeInsets.only(top: 14.0), + prefixIcon: Icon( Icons.email, color: Colors.white, ), @@ -54,7 +52,7 @@ class LoginFormState extends State { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( + const Text( 'Password', style: kLabelStyle, ), @@ -63,16 +61,16 @@ class LoginFormState extends State { alignment: Alignment.centerLeft, decoration: kBoxDecorationStyle, height: 60.0, - child: TextField( + child: const TextField( obscureText: true, - style: const TextStyle( + style: TextStyle( color: Colors.white, fontFamily: 'OpenSans', ), decoration: InputDecoration( border: InputBorder.none, - contentPadding: const EdgeInsets.only(top: 14.0), - prefixIcon: const Icon( + contentPadding: EdgeInsets.only(top: 14.0), + prefixIcon: Icon( Icons.lock, color: Colors.white, ), @@ -88,7 +86,7 @@ class LoginFormState extends State { return Container( alignment: Alignment.centerRight, child: ElevatedButton( - onPressed: () => print('Forgot Password Button Pressed'), + onPressed: (){}, style: ButtonStyle( padding: MaterialStateProperty.all(const EdgeInsets.only(right: 0.0)) ), @@ -100,7 +98,7 @@ class LoginFormState extends State { } Widget _buildRememberMeCheckBox() { - return Container( + return SizedBox( height: 13.0, child: Row( children: [ @@ -117,7 +115,7 @@ class LoginFormState extends State { }, ), ), - Text( + const Text( 'Remember me', style: kLabelStyle, )