Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:laundryku/utils/bacground.dart';
  3. import 'package:laundryku/pages/registrasi_page.dart';
  4. import 'package:laundryku/pages/aktivasi_page.dart';
  5. import 'package:laundryku/pages/navigation/navigation_page.dart';
  6. import 'package:laundryku/utils/colors.dart';
  7.  
  8.  
  9.  
  10. class Login_page extends StatefulWidget {
  11. static final String path = "lib/src/pages/login/login7.dart";
  12. @override
  13. _LoginSevenPageState createState() => _LoginSevenPageState();
  14. }
  15.  
  16. class _LoginSevenPageState extends State<Login_page> {
  17. @override
  18. Widget build(BuildContext context) {
  19. return Scaffold(
  20. backgroundColor: Colors.white,
  21. body: ListView(
  22. children: <Widget>[
  23. SizedBox(height: 30,),
  24. Container(
  25. margin: EdgeInsets.only(left: 20),
  26. child: Text('Login',
  27. style: TextStyle(
  28. fontSize: 45,
  29. fontWeight: FontWeight.w900,
  30. color:LightColor.darkpurple,
  31. ),),
  32. ),
  33. SizedBox(
  34. height: 30,
  35. ),
  36. Padding(
  37. padding: EdgeInsets.symmetric(horizontal: 32),
  38. child: Material(
  39. elevation: 2.0,
  40. borderRadius: BorderRadius.all(Radius.circular(10)),
  41. child: TextField(
  42.  
  43. cursorColor: LightColor.purple,
  44. decoration: InputDecoration(
  45. hintText: "Email",
  46. prefixIcon: Material(
  47. elevation: 0,
  48. borderRadius: BorderRadius.all(Radius.circular(10)),
  49. child: Icon(
  50. Icons.email,
  51. color: Colors.cyan,
  52. ),
  53. ),
  54. border: InputBorder.none,
  55. contentPadding:
  56. EdgeInsets.symmetric(horizontal: 25, vertical: 13)),
  57. ),
  58. ),
  59. ),
  60. SizedBox(
  61. height: 20,
  62. ),
  63. Padding(
  64. padding: EdgeInsets.symmetric(horizontal: 32),
  65. child: Material(
  66. elevation: 2.0,
  67. borderRadius: BorderRadius.all(Radius.circular(10)),
  68. child: TextField(
  69. cursorColor:LightColor.purple,
  70. decoration: InputDecoration(
  71. hintText: "Password",
  72. prefixIcon: Material(
  73. elevation: 0,
  74. borderRadius: BorderRadius.all(Radius.circular(10)),
  75. child: Icon(
  76. Icons.lock,
  77. color: Colors.cyan,
  78. ),
  79. ),
  80. border: InputBorder.none,
  81. contentPadding:
  82. EdgeInsets.symmetric(horizontal: 25, vertical: 13)),
  83. ),
  84. ),
  85. ),
  86. SizedBox(
  87. height: 35,
  88. ),
  89. Padding(
  90. padding: EdgeInsets.symmetric(horizontal: 32),
  91. child: Container(
  92. decoration: BoxDecoration(
  93. borderRadius: BorderRadius.all(Radius.circular(100)),
  94. color: LightColor.purple),
  95. child: FlatButton(
  96. child: Text(
  97. "Login",
  98. style: TextStyle(
  99. color: Colors.white,
  100. fontWeight: FontWeight.w700,
  101. fontSize: 18),
  102. ),
  103. onPressed: () {
  104. Navigator.push(context, MaterialPageRoute(builder: (context)=> NavPage() ));
  105. },
  106. ),
  107. )),
  108. SizedBox(height: 20,),
  109. Row(
  110. mainAxisAlignment: MainAxisAlignment.end,
  111. children: <Widget>[
  112. Container(
  113. margin: EdgeInsets.only(right: 40),
  114. child: Text("FORGOT PASSWORD ?", style: TextStyle(color:Colors.blue,fontSize: 12 ,fontWeight: FontWeight.w700),),
  115. ),
  116. ],
  117. ),
  118. SizedBox(height: 40,),
  119. Row(
  120. mainAxisAlignment: MainAxisAlignment.center,
  121. children: <Widget>[
  122. Text("Don't have an Account ? ", style: TextStyle(color:Colors.black,fontSize: 14 ,fontWeight: FontWeight.normal),),
  123. Container(
  124. child: GestureDetector(
  125. child: Text(
  126. "Sign Up ",
  127. style: TextStyle(
  128. color:Colors.lightBlueAccent,
  129. fontWeight: FontWeight.w500,
  130. fontSize: 18, decoration: TextDecoration.underline,
  131. ),
  132. ),
  133. onTap: (){
  134. Navigator.push(context, MaterialPageRoute(builder: (context)=> Registrasi_page() ));
  135. },
  136. ),
  137. ),
  138.  
  139. ],
  140. )
  141. ],
  142. ),
  143. );
  144. }
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement