Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LoginPage extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- backgroundColor: Colors.white,
- elevation: 0,
- actions: <Widget>[
- Container(
- margin: EdgeInsets.only(right: 10),
- child: Icon(
- Icons.close,
- color: Colors.grey,
- ),
- ),
- ],
- ),
- body: Container(
- color: Colors.white,
- padding: EdgeInsets.only(left: 35, right: 35, top: 10),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- children: <Widget>[
- Row(
- children: <Widget>[
- Expanded(
- child: Align(
- alignment: Alignment.centerLeft,
- child: Icon(
- Icons.arrow_back_ios,
- color: Colors.lightBlue,
- size: 20,
- ),
- ),
- ),
- Expanded(
- child: Center(
- child: Text(
- 'Welcome',
- style: TextStyle(fontSize: 18.0),
- ),
- ),
- ),
- Spacer(),
- ],
- ),
- Center(
- child: Text('kontol@live.com'),
- ),
- Container(
- margin: EdgeInsets.symmetric(vertical: 20),
- width: 80,
- height: 80,
- child: CircleAvatar(
- child: Icon(Icons.person),
- minRadius: 90,
- maxRadius: 150,
- ),
- ),
- Align(
- alignment: Alignment.centerLeft,
- child: Text(
- 'Password',
- style: TextStyle(
- fontSize: 12,
- color: Colors.grey,
- ),
- ),
- ),
- SizedBox(
- height: 10,
- ),
- SizedBox(
- height: 40,
- child: TextField(
- decoration: InputDecoration(
- border: OutlineInputBorder(
- borderRadius: BorderRadius.circular(5),
- borderSide: BorderSide(color: Colors.lightBlue),
- ),
- enabledBorder: OutlineInputBorder(
- borderRadius: BorderRadius.circular(5),
- borderSide: BorderSide(color: Colors.lightBlue),
- ),
- ),
- ),
- ),
- SizedBox(
- height: 15,
- ),
- MaterialButton(
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(5),
- ),
- color: Colors.lightBlue,
- child: Center(
- child: Text(
- 'SIGN IN',
- style: TextStyle(color: Colors.white),
- ),
- ),
- onPressed: () {},
- ),
- SizedBox(
- height: 20,
- ),
- Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- Checkbox(
- onChanged: (val) {},
- value: false,
- ),
- Text('Stay signed in'),
- ],
- ),
- ],
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement