Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. class LoginPage extends StatelessWidget {
  2. @override
  3. Widget build(BuildContext context) {
  4. return Scaffold(
  5. appBar: AppBar(
  6. backgroundColor: Colors.white,
  7. elevation: 0,
  8. actions: <Widget>[
  9. Container(
  10. margin: EdgeInsets.only(right: 10),
  11. child: Icon(
  12. Icons.close,
  13. color: Colors.grey,
  14. ),
  15. ),
  16. ],
  17. ),
  18. body: Container(
  19. color: Colors.white,
  20. padding: EdgeInsets.only(left: 35, right: 35, top: 10),
  21. child: Column(
  22. crossAxisAlignment: CrossAxisAlignment.center,
  23. children: <Widget>[
  24. Row(
  25. children: <Widget>[
  26. Expanded(
  27. child: Align(
  28. alignment: Alignment.centerLeft,
  29. child: Icon(
  30. Icons.arrow_back_ios,
  31. color: Colors.lightBlue,
  32. size: 20,
  33. ),
  34. ),
  35. ),
  36. Expanded(
  37. child: Center(
  38. child: Text(
  39. 'Welcome',
  40. style: TextStyle(fontSize: 18.0),
  41. ),
  42. ),
  43. ),
  44. Spacer(),
  45. ],
  46. ),
  47. Center(
  48. child: Text('kontol@live.com'),
  49. ),
  50. Container(
  51. margin: EdgeInsets.symmetric(vertical: 20),
  52. width: 80,
  53. height: 80,
  54. child: CircleAvatar(
  55. child: Icon(Icons.person),
  56. minRadius: 90,
  57. maxRadius: 150,
  58. ),
  59. ),
  60. Align(
  61. alignment: Alignment.centerLeft,
  62. child: Text(
  63. 'Password',
  64. style: TextStyle(
  65. fontSize: 12,
  66. color: Colors.grey,
  67. ),
  68. ),
  69. ),
  70. SizedBox(
  71. height: 10,
  72. ),
  73. SizedBox(
  74. height: 40,
  75. child: TextField(
  76. decoration: InputDecoration(
  77. border: OutlineInputBorder(
  78. borderRadius: BorderRadius.circular(5),
  79. borderSide: BorderSide(color: Colors.lightBlue),
  80. ),
  81. enabledBorder: OutlineInputBorder(
  82. borderRadius: BorderRadius.circular(5),
  83. borderSide: BorderSide(color: Colors.lightBlue),
  84. ),
  85. ),
  86. ),
  87. ),
  88. SizedBox(
  89. height: 15,
  90. ),
  91. MaterialButton(
  92. shape: RoundedRectangleBorder(
  93. borderRadius: BorderRadius.circular(5),
  94. ),
  95. color: Colors.lightBlue,
  96. child: Center(
  97. child: Text(
  98. 'SIGN IN',
  99. style: TextStyle(color: Colors.white),
  100. ),
  101. ),
  102. onPressed: () {},
  103. ),
  104. SizedBox(
  105. height: 20,
  106. ),
  107. Row(
  108. mainAxisAlignment: MainAxisAlignment.center,
  109. children: <Widget>[
  110. Checkbox(
  111. onChanged: (val) {},
  112. value: false,
  113. ),
  114. Text('Stay signed in'),
  115. ],
  116. ),
  117. ],
  118. ),
  119. ),
  120. );
  121. }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement