Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.50 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/cupertino.dart';
  3.  
  4.  
  5. class StepperReview extends StatelessWidget {
  6. @override
  7. Widget build(BuildContext context) {
  8. return MaterialApp(
  9. debugShowCheckedModeBanner: false,
  10. color: Colors.grey,
  11. home: new TestAppHomePage(),
  12. theme: new ThemeData(
  13. primarySwatch: Colors.lightBlue,
  14. ),
  15. );
  16. }
  17. }
  18.  
  19. class TestAppHomePage extends StatefulWidget {
  20. // const TestAppHomePage({this.comicCharacter});
  21. // final SuperHeros comicCharacter;
  22. @override
  23. TestAppHomePageState createState() => new TestAppHomePageState();
  24. }
  25.  
  26. class TestAppHomePageState extends State<TestAppHomePage>
  27. with TickerProviderStateMixin {
  28. ScrollController _scrollController = new ScrollController();
  29.  
  30. @override
  31. Widget build(BuildContext context) {
  32. // TODO: implement build
  33. return new Scaffold(
  34. body: new ListView(
  35. children: <Widget>[
  36. new Padding(padding: new EdgeInsets.only(top: 20.0),child:
  37. MyTimeLine(),),
  38. MyMiddleTimeLine(),
  39. LastTimeLine()
  40. ],
  41. ),
  42. );
  43. }
  44. }
  45.  
  46. class VerticalSeparator extends StatelessWidget{
  47. @override
  48. Widget build(BuildContext context) {
  49. return new Container(
  50. margin: new EdgeInsets.symmetric(vertical: 4.0),
  51. height: 60.0,
  52. width: 1.0,
  53. color: Colors.deepOrange
  54. );
  55. }
  56. }
  57.  
  58. class MyTimeLine extends StatefulWidget{
  59. @override
  60. _TimeLineState createState() => _TimeLineState();
  61. }
  62.  
  63. class _TimeLineState extends State<MyTimeLine>{
  64.  
  65. @override
  66. Widget build(BuildContext context) {
  67. return new Padding(
  68. padding: new EdgeInsets.symmetric(horizontal: 10.0),
  69. child: new Column(
  70. children: <Widget>[
  71. new Row(
  72. crossAxisAlignment: CrossAxisAlignment.start,
  73. children: <Widget>[
  74. new Container(
  75. width: 30.0,
  76. child: new Center(
  77. child: new Stack(
  78. children: <Widget>[
  79. new Padding(padding: new EdgeInsets.only(left: 12.0), child: new VerticalSeparator(),),
  80. new Container(padding: new EdgeInsets.only(), child: new Icon(Icons.blur_circular,color: Colors.white), decoration: new BoxDecoration( color: new Color(0xff00c6ff),shape: BoxShape.circle),)
  81. ],
  82. ),
  83. ),
  84. ),
  85. new Expanded(
  86. child: new Column(
  87. crossAxisAlignment: CrossAxisAlignment.start,
  88. children: <Widget>[
  89. new Padding(
  90. padding: new EdgeInsets.only(left: 20.0, top: 5.0),
  91. child: new Text(
  92. 'Editing Proses',
  93. style: new TextStyle(
  94. fontWeight: FontWeight.w500,
  95. color: Colors.deepOrange,
  96. fontSize: 16.0
  97. ),
  98. ),
  99. ),
  100. new Padding(
  101. padding: new EdgeInsets.only(left: 20.0, top: 5.0),
  102. child: new Text(
  103. 'Yesterday 11:25 ',
  104. ),
  105. )
  106. ],
  107. ),
  108. )
  109. ],
  110. )
  111. ],
  112. ),
  113. );
  114. }
  115. }
  116.  
  117. class MyMiddleTimeLine extends StatefulWidget{
  118. @override
  119. _MyMiddleTimeLineState createState() => _MyMiddleTimeLineState();
  120. }
  121.  
  122. class _MyMiddleTimeLineState extends State<MyMiddleTimeLine>{
  123.  
  124. @override
  125. Widget build(BuildContext context) {
  126. return new Padding(
  127. padding: new EdgeInsets.symmetric(horizontal: 10.0),
  128. child: new Column(
  129. children: <Widget>[
  130. new Row(
  131. crossAxisAlignment: CrossAxisAlignment.start,
  132. children: <Widget>[
  133. new Container(
  134. width: 30.0,
  135. child: new Center(
  136. child: new Stack(
  137. children: <Widget>[
  138. new Padding(padding: new EdgeInsets.only(left: 12.0), child: new VerticalSeparator(),),
  139. new Container(padding: new EdgeInsets.only(), child: new Icon(Icons.blur_circular,color: Colors.white), decoration: new BoxDecoration( color: new Color(0xff00c6ff),shape: BoxShape.circle),)
  140. ],
  141. ),
  142. ),
  143. ),
  144. new Expanded(
  145. child: new Column(
  146. crossAxisAlignment: CrossAxisAlignment.start,
  147. children: <Widget>[
  148. new Padding(
  149. padding: new EdgeInsets.only(left: 20.0, top: 5.0),
  150. child: new Text(
  151. 'Instalasi Proses',
  152. style: new TextStyle(
  153. fontWeight: FontWeight.w500,
  154. color: Colors.deepOrange,
  155. fontSize: 16.0
  156. ),
  157. ),
  158. ),
  159. new Padding(
  160. padding: new EdgeInsets.only(left: 20.0, top: 5.0),
  161. child: new Text(
  162. 'Today 12:11',
  163. ),
  164. )
  165. ],
  166. ),
  167. )
  168. ],
  169. )
  170. ],
  171. ),
  172. );
  173. }
  174. }
  175.  
  176.  
  177. class LastTimeLine extends StatefulWidget{
  178. @override
  179. _LastTimeLineState createState() => _LastTimeLineState();
  180. }
  181.  
  182. class _LastTimeLineState extends State<LastTimeLine>{
  183.  
  184. @override
  185. Widget build(BuildContext context) {
  186. return new Padding(
  187. padding: new EdgeInsets.symmetric(horizontal: 10.0),
  188. child: new Column(
  189. children: <Widget>[
  190. new Row(
  191. crossAxisAlignment: CrossAxisAlignment.start,
  192. children: <Widget>[
  193. new Container(
  194. width: 30.0,
  195. child: new Center(
  196. child: new Stack(
  197. children: <Widget>[
  198. // new Padding(padding: new EdgeInsets.only(left: 12.0), child: new VerticalSeparator(),),
  199. new Container(padding: new EdgeInsets.only(), child: new Icon(Icons.blur_circular,color: Colors.white), decoration: new BoxDecoration( color: new Color(0xff00c6ff),shape: BoxShape.circle),),
  200.  
  201. ],
  202. ),
  203. ),
  204. ),
  205. new Expanded(
  206. child: new Column(
  207. crossAxisAlignment: CrossAxisAlignment.start,
  208. children: <Widget>[
  209. new Padding(
  210. padding: new EdgeInsets.only(left: 20.0, top: 5.0),
  211. child: new Text(
  212. 'Ready to Aired',
  213. style: new TextStyle(
  214. fontWeight: FontWeight.w500,
  215. color: Colors.deepOrange,
  216. fontSize: 16.0
  217. ),
  218. ),
  219. ),
  220. new Padding(
  221. padding: new EdgeInsets.only(left: 20.0, top: 5.0),
  222. child: new Text(
  223. 'Today 12:55',
  224. ),
  225. )
  226. ],
  227. ),
  228. )
  229. ],
  230. )
  231. ],
  232. ),
  233. );
  234. }
  235. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement