Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class LoginPage extends StatefulWidget {
  4. LoginPage({Key key}) : super(key: key);
  5.  
  6. _LoginPageState createState() => _LoginPageState();
  7. }
  8.  
  9. class _LoginPageState extends State<LoginPage> {
  10. String _email;
  11. String _password;
  12. @override
  13. Widget build(BuildContext context) {
  14. return Scaffold(
  15. body: Center(
  16. child: Container(
  17. margin: EdgeInsets.all(25.0),
  18. child: Column(
  19. mainAxisAlignment: MainAxisAlignment.center,
  20. children: <Widget>[
  21. TextField(
  22. decoration: InputDecoration(
  23. hintText: 'Enter Email',
  24. ),
  25. onChanged: (value) {
  26. _email = value;
  27. },
  28. ),
  29. SizedBox(
  30. height: 15.0,
  31. ),
  32. TextField(
  33. decoration: InputDecoration(
  34. hintText: 'Enter Password',
  35. ),
  36. onChanged: (value) {
  37. _password = value;
  38. },
  39. ),
  40. SizedBox(
  41. height: 20.0,
  42. ),
  43. RaisedButton(
  44. child: Text("Login"),
  45. color: Colors.blue,
  46. textColor: Colors.white,
  47. elevation: 7.0,
  48. onPressed: () {},
  49. ),
  50. SizedBox(
  51. height: 15.0,
  52. ),
  53. Text("Dont have an account ?"),
  54. SizedBox(
  55. height: 10.0,
  56. ),
  57. RaisedButton(
  58. child: Text("Sign up"),
  59. color: Colors.blue,
  60. textColor: Colors.white,
  61. elevation: 7.0,
  62. onPressed: () {},
  63. ),
  64. ],
  65. ),
  66. ),
  67. ),
  68. );
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement