Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.01 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. void main() => runApp(MyApp());
  3.  
  4. //-----IMPORTS-------------------------------------------------------------------------------------------//
  5.  
  6. class MyApp extends StatelessWidget {
  7. // This widget is the root of your application.
  8. @override
  9. Widget build(BuildContext context) {
  10. return MaterialApp(
  11. title: 'Bepsnet Merchant',
  12. theme: ThemeData(
  13. primaryColor: Colors.blueGrey[500],
  14. ),
  15.  
  16.  
  17. //-----SCAFFOLD-------------------------------------------------------------------------------------------//
  18.  
  19.  
  20. home: Scaffold(
  21. appBar: AppBar(
  22. title: Text('Bepsnet Merchant'),
  23. ),
  24. drawer: Drawer(
  25. child: ListView(
  26. padding: EdgeInsets.zero,
  27. children: <Widget>[
  28. DrawerHeader(
  29. child: Text('Bepsnet Merchant'),
  30. decoration: BoxDecoration(
  31. color: Colors.blueGrey[500],
  32. ),
  33. ),
  34. ListTile(
  35. title: Text('Transaksi'),
  36. onTap: () {
  37. Navigator.pop(context);
  38. },
  39. ),
  40. ListTile(
  41. title: Text('Laporan'),
  42. onTap: () {
  43. print('coba');
  44. },
  45. ),
  46. ],
  47. ),
  48. ),
  49. body: SingleChildScrollView(
  50. child: Stack(
  51. children: <Widget>[
  52. new Column(
  53. children: <Widget>[
  54.  
  55. //-----Field 1-------------------------------------------------------------------------------------------//
  56.  
  57. new Container(
  58. margin: EdgeInsets.all(0.0),
  59. color: Colors.white,
  60. child: new Column(
  61. children: <Widget>[
  62. new Card(
  63. elevation: 0.0,
  64. child: new Container(
  65. alignment: Alignment(0.0, 0.0),
  66. height: 30,
  67. margin: EdgeInsets.all(0.0),
  68. color: Colors.blue[50],
  69. child: new Text(
  70. 'Jumlah Saldo',
  71. style: TextStyle(
  72. fontSize: 15.0, color: Colors.black45),
  73. ),
  74. ),
  75. ),
  76. new Card(
  77. elevation: 1.0,
  78. child: new Container(
  79. alignment: Alignment(0.0, 0.0),
  80. height: 60.0,
  81. margin: EdgeInsets.all(0.0),
  82. color: Colors.white,
  83. child: new Text(
  84. 'Rp. 100,000,000',
  85. style: TextStyle(
  86. fontSize: 20.0, color: Colors.black45),
  87. ),
  88. ),
  89. ),
  90. ],
  91. ),
  92. ),
  93.  
  94. //-----Field 2-------------------------------------------------------------------------------------------//
  95.  
  96. new Container(
  97. margin: EdgeInsets.all(0.0),
  98. color: Colors.white,
  99. child: new Column(
  100. children: <Widget>[
  101. new Card(
  102. elevation: 0.0,
  103. child: new Container(
  104. alignment: Alignment(0.0, 0.0),
  105. height: 30,
  106. margin: EdgeInsets.all(0.0),
  107. color: Colors.blue[50],
  108. child: new Text(
  109. 'Transaksi Hari Ini',
  110. style: TextStyle(
  111. fontSize: 15.0, color: Colors.black45),
  112. ),
  113. ),
  114. ),
  115. new Container(
  116. width: 325,
  117. color: Colors.white,
  118. child: new TextField(
  119. decoration: InputDecoration(
  120. focusedBorder: OutlineInputBorder(
  121. borderSide: BorderSide(
  122. color: Colors.grey, width: 1.0),
  123. ),
  124. hintText: 'Cari Transaksi',
  125. hintStyle: TextStyle(
  126. fontSize: 15.0, color: Colors.black45)),
  127. ),
  128. ),
  129. new Card(
  130. elevation: 1.0,
  131. child: new Container(
  132. alignment: Alignment(0.0, 0.0),
  133. margin: EdgeInsets.all(10.0),
  134. color: Colors.white,
  135. child: Column(
  136. children: <Widget>[
  137. new Card(
  138. elevation: 1.0,
  139. child: Container(
  140. color: Colors.green[50],
  141. height: 50,
  142. width: 325,
  143. margin: EdgeInsets.all(1.0),
  144. child: new Text('User 1'),
  145. ),
  146. ),
  147. new Card(
  148. elevation: 1.0,
  149. child: Container(
  150. color: Colors.green[50],
  151. height: 50,
  152. width: 325,
  153. margin: EdgeInsets.all(1.0),
  154. child: new Text('User 2'),
  155. ),
  156. ),
  157. new Card(
  158. elevation: 1.0,
  159. child: Container(
  160. color: Colors.green[50],
  161. height: 50,
  162. width: 325,
  163. margin: EdgeInsets.all(1.0),
  164. child: new Text('User 3'),
  165. ),
  166. ),
  167. new Card(
  168. elevation: 1.0,
  169. child: Container(
  170. color: Colors.green[50],
  171. height: 50,
  172. width: 325,
  173. margin: EdgeInsets.all(1.0),
  174. child: new Text('User 3'),
  175. ),
  176. ),
  177. ],
  178. ),
  179. ),
  180. ),
  181. ],
  182. ),
  183. ),
  184.  
  185. //-----Field 3-------------------------------------------------------------------------------------------//
  186.  
  187. new Container(
  188. margin: EdgeInsets.all(0.0),
  189. color: Colors.white,
  190. child: new Column(
  191. children: <Widget>[
  192. ],
  193. ),
  194. ),
  195. ],
  196. )
  197. ],
  198. ),
  199. ),
  200. ),
  201.  
  202. //-----SCAFFOLD END-------------------------------------------------------------------------------------------//
  203. );
  204. }
  205. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement