-
-
Save sbis04/02a02acfc84a7cb76a1edfa7d040f9e9 to your computer and use it in GitHub Desktop.
This file contains 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
// The basic skeleton structure of the widget | |
class AuthDialog extends StatefulWidget { | |
@override | |
_AuthDialogState createState() => _AuthDialogState(); | |
} | |
class _AuthDialogState extends State<AuthDialog> { | |
@override | |
Widget build(BuildContext context) { | |
return Dialog( | |
// ... | |
child: SingleChildScrollView( | |
child: Padding( | |
padding: const EdgeInsets.all(16.0), | |
child: Container( | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
mainAxisSize: MainAxisSize.min, | |
children: [ | |
Text('Email address'), | |
TextField(hintText: "Email"), | |
Text('Password'), | |
TextField(hintText: "Password"), | |
Row( | |
mainAxisSize: MainAxisSize.max, | |
mainAxisAlignment: MainAxisAlignment.spaceAround, | |
children: [ | |
Flexible( | |
flex: 1, | |
child: Container( | |
width: double.maxFinite, | |
child: FlatButton( | |
onPressed: () {}, | |
child: Text( | |
'Log in', | |
style: TextStyle(fontSize: 14, color: Colors.white), | |
), | |
), | |
), | |
), | |
Flexible( | |
flex: 1, | |
child: Container( | |
width: double.maxFinite, | |
child: FlatButton( | |
onPressed: () {}, | |
child: Text( | |
'Sign up', | |
style: TextStyle(fontSize: 14, color: Colors.white), | |
), | |
), | |
), | |
), | |
], | |
), | |
Center(child: GoogleButton()), | |
], | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment