OrderInfoCard.dart 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. class OrderInfoCard extends StatelessWidget {
  4. const OrderInfoCard({Key? key}) : super(key: key);
  5. @override
  6. Widget build(BuildContext context) {
  7. return Container(
  8. width: 345.w,
  9. height: 484.5.h,
  10. margin: EdgeInsets.fromLTRB(15.w, 17.w, 15.w, 0),
  11. decoration: BoxDecoration(
  12. color: Colors.white,
  13. //设置四周圆角 角度
  14. borderRadius: BorderRadius.all(Radius.circular(2.0)),
  15. //设置四周边框
  16. boxShadow: [
  17. BoxShadow(
  18. blurRadius: 10, //阴影范围
  19. spreadRadius: 0.1, //阴影浓度
  20. color: Colors.grey.withOpacity(0.2), //阴影颜色
  21. ),
  22. ],
  23. ),
  24. child: Column(
  25. crossAxisAlignment: CrossAxisAlignment.start,
  26. children: [
  27. Container(
  28. margin: EdgeInsets.fromLTRB(15.w, 0, 0, 0),
  29. child: Column(
  30. crossAxisAlignment: CrossAxisAlignment.start,
  31. children: [
  32. Container(
  33. padding: EdgeInsets.fromLTRB(0, 15, 0, 20),
  34. width: 314.w,
  35. decoration: const BoxDecoration(
  36. border: Border(
  37. bottom:
  38. BorderSide(width: 0.5, color: Color(0x20000000)
  39. // 0x17000000
  40. ))),
  41. child: RichText(
  42. text: const TextSpan(children: <InlineSpan>[
  43. TextSpan(
  44. text: '订单编号:',
  45. style: TextStyle(
  46. color: Color(0xff666666),
  47. fontSize: 16,
  48. fontWeight: FontWeight.bold)),
  49. TextSpan(
  50. text: 'XUHUI12345',
  51. style: TextStyle(
  52. color: Color(0xff222222),
  53. fontSize: 16,
  54. fontWeight: FontWeight.bold)),
  55. ]),
  56. ),
  57. ),
  58. Padding(
  59. padding: EdgeInsets.fromLTRB(0, 20, 0, 15),
  60. child: RichText(
  61. text: const TextSpan(children: <InlineSpan>[
  62. TextSpan(
  63. text: '农机名称:',
  64. style: TextStyle(
  65. color: Color(0xff666666),
  66. fontSize: 16,
  67. fontWeight: FontWeight.bold)),
  68. TextSpan(
  69. text: '老李家收割机MVGV-005',
  70. style: TextStyle(
  71. color: Color(0xff222222),
  72. fontSize: 16,
  73. fontWeight: FontWeight.bold)),
  74. ]),
  75. ),
  76. ),
  77. Padding(
  78. padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
  79. child: RichText(
  80. text: const TextSpan(children: <InlineSpan>[
  81. TextSpan(
  82. text: '作业面积:',
  83. style: TextStyle(
  84. color: Color(0xff666666),
  85. fontSize: 16,
  86. fontWeight: FontWeight.bold)),
  87. TextSpan(
  88. text: '1',
  89. style: TextStyle(
  90. color: Color(0xff222222),
  91. fontSize: 16,
  92. fontWeight: FontWeight.bold)),
  93. ]),
  94. ),
  95. ),
  96. Padding(
  97. padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
  98. child: RichText(
  99. text: const TextSpan(children: <InlineSpan>[
  100. TextSpan(
  101. text: '需求时间:',
  102. style: TextStyle(
  103. color: Color(0xff666666),
  104. fontSize: 16,
  105. fontWeight: FontWeight.bold)),
  106. TextSpan(
  107. text: '2018-08-21',
  108. style: TextStyle(
  109. color: Color(0xff222222),
  110. fontSize: 16,
  111. fontWeight: FontWeight.bold)),
  112. ]),
  113. ),
  114. ),
  115. Padding(
  116. padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
  117. child: RichText(
  118. text: const TextSpan(children: <InlineSpan>[
  119. TextSpan(
  120. text: '下单时间:',
  121. style: TextStyle(
  122. color: Color(0xff666666),
  123. fontSize: 16,
  124. fontWeight: FontWeight.bold)),
  125. TextSpan(
  126. text: '2022-04-13',
  127. style: TextStyle(
  128. color: Color(0xff222222),
  129. fontSize: 16,
  130. fontWeight: FontWeight.bold)),
  131. ]),
  132. ),
  133. ),
  134. Padding(
  135. padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
  136. child: RichText(
  137. text: TextSpan(children: <InlineSpan>[
  138. TextSpan(
  139. text: '订单状态:',
  140. style: TextStyle(
  141. color: Color(0xff666666),
  142. fontSize: 16,
  143. fontWeight: FontWeight.bold)),
  144. TextSpan(
  145. text: '待付款',
  146. style: TextStyle(
  147. color: Color(0xff51D4FF),
  148. fontSize: 16,
  149. fontWeight: FontWeight.bold)),
  150. ]),
  151. ),
  152. ),
  153. Container(
  154. padding: EdgeInsets.fromLTRB(0, 20, 0, 0),
  155. width: 314.w,
  156. decoration: const BoxDecoration(
  157. border: Border(
  158. top: BorderSide(
  159. width: 0.8, color: Color(0x20000000)
  160. // 0x17000000
  161. ))),
  162. child: Column(
  163. children: [
  164. Row(
  165. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  166. children: [
  167. Text('费用:',
  168. style: TextStyle(
  169. color: Color(0xff666666),
  170. fontSize: 16,
  171. fontWeight: FontWeight.bold)),
  172. Text('8880',
  173. style: TextStyle(
  174. color: Color(0xffB61515),
  175. fontSize: 16,
  176. fontWeight: FontWeight.bold)),
  177. ],
  178. ),
  179. Padding(padding: EdgeInsets.fromLTRB(0, 30, 0, 0),
  180. child: Row(
  181. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  182. children: [
  183. Text('状态:',
  184. style: TextStyle(
  185. color: Color(0xff666666),
  186. fontSize: 16,
  187. fontWeight: FontWeight.bold)),
  188. Text('待付款',
  189. style: TextStyle(
  190. color: Color(0xff51D4FF),
  191. fontSize: 16,
  192. fontWeight: FontWeight.bold)),
  193. ],
  194. ),
  195. ),
  196. ],
  197. )),
  198. ],
  199. )),
  200. ],
  201. ),
  202. );
  203. }
  204. }