PatrolJobDrawer.dart 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. import 'package:deus_app/common/style/gsy_style.dart';
  2. import 'package:flutter/material.dart';
  3. class PatrolJobDrawer extends StatelessWidget{
  4. @override
  5. Widget build(BuildContext context) {
  6. return Drawer(
  7. child: MediaQuery.removePadding(
  8. context: context,
  9. //移除抽屉菜单顶部默认留白
  10. removeTop: true,
  11. child: Column(
  12. crossAxisAlignment: CrossAxisAlignment.start,
  13. children: <Widget>[
  14. Padding(
  15. padding: const EdgeInsets.only(top: 38.0,left: 10,right: 10),
  16. child: Row(children: [
  17. Expanded(
  18. flex: 1,
  19. child: Text(
  20. '任务名称',
  21. style: TextStyle(
  22. color: Colors.black,
  23. fontSize: GSYConstant.minTextSize,
  24. fontWeight: FontWeight.bold,
  25. ),
  26. ),
  27. ),
  28. Expanded(
  29. child: Container(
  30. height: 40,
  31. child: TextField(
  32. decoration: InputDecoration(
  33. border: OutlineInputBorder(),
  34. ),style: TextStyle(fontSize: 14),
  35. onChanged: (value) {
  36. _name = value;
  37. },
  38. ),
  39. ),
  40. flex: 4,
  41. ),
  42. ]),
  43. ),
  44. Padding(
  45. padding: const EdgeInsets.only(top: 38.0,left: 10,right: 10),
  46. child: Row(children: [
  47. Expanded(
  48. flex: 1,
  49. child: Text(
  50. '任务编号',
  51. style: TextStyle(
  52. color: Colors.black,
  53. fontSize: GSYConstant.minTextSize,
  54. fontWeight: FontWeight.bold,
  55. ),
  56. ),
  57. ),
  58. Expanded(
  59. child: Container(
  60. height: 40,
  61. child: TextField(
  62. decoration: InputDecoration(
  63. border: OutlineInputBorder()
  64. ),style: TextStyle(fontSize: 14),
  65. onChanged: (value) {
  66. _number = value;
  67. },
  68. ),
  69. ),
  70. flex: 4,
  71. ),
  72. ]),
  73. ),
  74. Padding(
  75. padding: const EdgeInsets.only(top: 38.0,left: 10,right: 10),
  76. child: Row(children: [
  77. Expanded(
  78. flex: 1,
  79. child: Text(
  80. '计划名称',
  81. style: TextStyle(
  82. color: Colors.black,
  83. fontSize: GSYConstant.minTextSize,
  84. fontWeight: FontWeight.bold,
  85. ),
  86. ),
  87. ),
  88. Expanded(
  89. child: Container(
  90. height: 40,
  91. child: TextField(
  92. decoration: InputDecoration(
  93. border: OutlineInputBorder()
  94. ),style: TextStyle(fontSize: 14),
  95. onChanged: (value) {
  96. _planName = value;
  97. },
  98. ),
  99. ),
  100. flex: 4,
  101. ),
  102. ]),
  103. ),
  104. Padding(
  105. padding: const EdgeInsets.only(top: 38.0,left: 10,right: 10),
  106. child: Row(children: [
  107. Expanded(
  108. flex: 1,
  109. child: Text(
  110. '计划编号',
  111. style: TextStyle(
  112. color: Colors.black,
  113. fontSize: GSYConstant.minTextSize,
  114. fontWeight: FontWeight.bold,
  115. ),
  116. ),
  117. ),
  118. Expanded(
  119. flex: 4,
  120. child: Container(
  121. height: 40,
  122. child: TextField(
  123. decoration: InputDecoration(
  124. border: OutlineInputBorder()
  125. ),style: TextStyle(fontSize: 14),
  126. onChanged: (value) {
  127. _planNumber = value;
  128. },
  129. ),
  130. ),
  131. ),
  132. ]),
  133. ),
  134. Padding(
  135. padding: const EdgeInsets.only(top: 38.0,left: 10,right: 10),
  136. child: Row(children: [
  137. Expanded(
  138. flex: 1,
  139. child: Text(
  140. '计划编号',
  141. style: TextStyle(
  142. color: Colors.black,
  143. fontSize: GSYConstant.minTextSize,
  144. fontWeight: FontWeight.bold,
  145. ),
  146. ),
  147. ),
  148. Expanded(
  149. flex: 4,
  150. child: Container(
  151. height: 40,
  152. child: TextField(
  153. decoration: InputDecoration(
  154. border: OutlineInputBorder()
  155. ),style: TextStyle(fontSize: 14),
  156. onChanged: (value) {
  157. _planNumber = value;
  158. },
  159. ),
  160. ),
  161. ),
  162. ]),
  163. ),
  164. Padding(
  165. padding: const EdgeInsets.only(top: 38.0,left: 10,right: 10),
  166. child: Row(children: [
  167. Expanded(
  168. flex: 1,
  169. child: Text(
  170. '计划编号',
  171. style: TextStyle(
  172. color: Colors.black,
  173. fontSize: GSYConstant.minTextSize,
  174. fontWeight: FontWeight.bold,
  175. ),
  176. ),
  177. ),
  178. Expanded(
  179. flex: 4,
  180. child: Container(
  181. height: 40,
  182. child: TextField(
  183. decoration: InputDecoration(
  184. border: OutlineInputBorder()
  185. ),style: TextStyle(fontSize: 14),
  186. onChanged: (value) {
  187. _planNumber = value;
  188. },
  189. ),
  190. ),
  191. ),
  192. ]),
  193. ),
  194. ],
  195. ),
  196. ),
  197. );
  198. }
  199. String _name = '',_number = '', _planName = '', _planNumber = '';
  200. int _status = 1,_termType = 1;
  201. }