Created
November 18, 2019 03:21
-
-
Save Shubham-Narkhede/a5eec6f3fa57bc5d4ef7397908ba32ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Image.asset( | |
'assets/main_page.jpg', | |
height: MediaQuery.of(context).size.height * 0.4, | |
width: MediaQuery.of(context).size.width * 0.4, | |
), | |
Row( | |
children: <Widget>[ | |
SizedBox( | |
width: 20, | |
), | |
Expanded( | |
child: MaterialButton( | |
color: Colors.white, | |
splashColor: Colors.blue, | |
shape: RoundedRectangleBorder( | |
borderRadius: new BorderRadius.circular(18.0), | |
side: BorderSide(color: Colors.black)), | |
onPressed: () { | |
Navigator.push(context, | |
MaterialPageRoute(builder: (context) => loginPage())); | |
}, | |
child: Text("Login"), | |
)), | |
SizedBox( | |
width: 20, | |
), | |
Expanded( | |
child: MaterialButton( | |
color: Colors.white, | |
splashColor: Colors.blue, | |
shape: RoundedRectangleBorder( | |
borderRadius: new BorderRadius.circular(18.0), | |
side: BorderSide(color: Colors.black)), | |
onPressed: () { | |
Navigator.push(context, | |
MaterialPageRoute(builder: (context) => registerPage())); | |
}, | |
child: Text("Register Now"), | |
)), | |
SizedBox( | |
width: 20, | |
), | |
], | |
), | |
SizedBox( | |
height: 10, | |
), | |
Text('Now! Quick login use Touch ID', | |
style: TextStyle( | |
color: Colors.white, fontWeight: FontWeight.bold)), | |
SizedBox( | |
height: 15, | |
), | |
Icon( | |
Icons.fingerprint, | |
color: Colors.white, | |
size: 60, | |
), | |
SizedBox( | |
height: 10, | |
), | |
Text('Use Touch ID', | |
style: TextStyle( | |
color: Colors.white, | |
fontWeight: FontWeight.bold, | |
decoration: TextDecoration.underline, | |
)), | |
], | |
), | |
), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment