Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:wave/config.dart';
  3. import 'package:wave/wave.dart';
  4.  
  5. class LoginThreePage extends StatelessWidget {
  6. static final String path = "lib/src/pages/login/login3.dart";
  7. @override
  8. Widget build(BuildContext context) {
  9. return Scaffold(
  10. body: Stack(
  11. children: <Widget>[
  12. Container(
  13. height: 650,
  14. child: RotatedBox(
  15. quarterTurns: 2,
  16. child: WaveWidget(
  17. config: CustomConfig(
  18. gradients: [
  19. [Colors.deepPurple, Colors.deepPurple.shade200],
  20. [Colors.indigo.shade200, Colors.purple.shade200],
  21. ],
  22. durations: [19440, 10800],
  23. heightPercentages: [0.20, 0.25],
  24. blur: MaskFilter.blur(BlurStyle.solid, 10),
  25. gradientBegin: Alignment.bottomLeft,
  26. gradientEnd: Alignment.topRight,
  27. ),
  28. waveAmplitude: 0,
  29. size: Size(
  30. double.infinity,
  31. double.infinity,
  32. ),
  33. ),
  34. ),
  35. ),
  36. ListView(
  37. children: <Widget>[
  38. Container(
  39. height: 400,
  40. child: Column(
  41. mainAxisAlignment: MainAxisAlignment.center,
  42. children: <Widget>[
  43. Text("Login", textAlign: TextAlign.center, style: TextStyle(
  44. color: Colors.white70,
  45. fontWeight: FontWeight.bold,
  46. fontSize: 28.0
  47. )),
  48. Card(
  49. margin: EdgeInsets.only(left: 30, right:30, top:30),
  50. elevation: 11,
  51. shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(40))),
  52. child: TextField(
  53. decoration: InputDecoration(
  54. prefixIcon: Icon(Icons.person, color: Colors.black26,),
  55. suffixIcon: Icon(Icons.check_circle, color: Colors.black26,),
  56. hintText: "Username",
  57. hintStyle: TextStyle(color: Colors.black26),
  58. filled: true,
  59. fillColor: Colors.white,
  60. border: OutlineInputBorder(
  61. borderSide: BorderSide.none,
  62. borderRadius: BorderRadius.all(Radius.circular(40.0)),
  63. ),
  64. contentPadding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 16.0)
  65. ),
  66. ),
  67. ),
  68. Card(
  69. margin: EdgeInsets.only(left: 30, right:30, top:20),
  70. elevation: 11,
  71. shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(40))),
  72. child: TextField(
  73. decoration: InputDecoration(
  74. prefixIcon: Icon(Icons.lock, color: Colors.black26,),
  75. hintText: "Password",
  76. hintStyle: TextStyle(
  77. color: Colors.black26,
  78. ),
  79. filled: true,
  80. fillColor: Colors.white,
  81. border: OutlineInputBorder(
  82. borderSide: BorderSide.none,
  83. borderRadius: BorderRadius.all(Radius.circular(40.0)),
  84. ),
  85. contentPadding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 16.0)
  86. ),
  87. ),
  88. ),
  89. Container(
  90. width: double.infinity,
  91. padding: EdgeInsets.all(30.0),
  92. child: RaisedButton(
  93. padding: EdgeInsets.symmetric(vertical: 16.0),
  94. color: Colors.pink,
  95. onPressed: (){},
  96. elevation: 11,
  97. shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(40.0))),
  98. child: Text("Login", style: TextStyle(
  99. color: Colors.white70
  100. )),
  101. ),
  102. ),
  103. Text("Forgot your password?", style: TextStyle(
  104. color: Colors.white
  105. ))
  106. ],
  107. ),
  108. ),
  109. SizedBox(height: 100,),
  110. Align(
  111. alignment: Alignment.bottomCenter,
  112. child: Column(
  113. mainAxisAlignment: MainAxisAlignment.end,
  114. children: <Widget>[
  115. Text("or, connect with"),
  116. SizedBox(height: 20.0,),
  117. Row(
  118. children: <Widget>[
  119. SizedBox(width: 20.0,),
  120. Expanded(
  121. child: RaisedButton(
  122. child: Text("Facebook"),
  123. textColor: Colors.white,
  124. color: Colors.blue,
  125. shape: RoundedRectangleBorder(
  126. borderRadius: BorderRadius.all(Radius.circular(40)),
  127. ),
  128. onPressed: (){},
  129. ),
  130. ),
  131. SizedBox(width: 10.0,),
  132. Expanded(
  133. child: RaisedButton(
  134. child: Text("Twitter"),
  135. textColor: Colors.white,
  136. color: Colors.indigo,
  137. shape: RoundedRectangleBorder(
  138. borderRadius: BorderRadius.all(Radius.circular(40)),
  139. ),
  140. onPressed: (){},
  141. ),
  142. ),
  143. SizedBox(width: 20.0,),
  144. ],
  145. ),
  146. Row(
  147. mainAxisAlignment: MainAxisAlignment.center,
  148. children: <Widget>[
  149. Text("Dont have an account?"),
  150. FlatButton(child: Text("Sign up"), textColor: Colors.indigo, onPressed: (){},)
  151. ],
  152. )
  153. ],
  154. ),
  155. )
  156. ],
  157. ),
  158. ],
  159. ),
  160. );
  161. }
  162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement