Skip to content

Instantly share code, notes, and snippets.

@Shubham-Narkhede
Created November 18, 2019 03:21
Show Gist options
  • Save Shubham-Narkhede/a5eec6f3fa57bc5d4ef7397908ba32ec to your computer and use it in GitHub Desktop.
Save Shubham-Narkhede/a5eec6f3fa57bc5d4ef7397908ba32ec to your computer and use it in GitHub Desktop.
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