detail_processing_fragment.dart 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. import 'package:cs_resources/generated/assets.dart';
  2. import 'package:cs_resources/generated/l10n.dart';
  3. import 'package:cs_resources/theme/app_colors_theme.dart';
  4. import 'package:flutter/cupertino.dart';
  5. import 'package:flutter/material.dart';
  6. import 'package:flutter/src/widgets/framework.dart';
  7. import 'package:hooks_riverpod/hooks_riverpod.dart';
  8. import 'package:widgets/ext/ex_widget.dart';
  9. import 'package:widgets/my_button.dart';
  10. import 'package:widgets/my_load_image.dart';
  11. import 'package:widgets/my_text_view.dart';
  12. class DetailProcessingFragment extends HookConsumerWidget {
  13. @override
  14. Widget build(BuildContext context, WidgetRef ref) {
  15. return SizedBox(
  16. width: double.infinity,
  17. height: double.infinity,
  18. child: Column(
  19. children: [
  20. SingleChildScrollView(
  21. scrollDirection: Axis.vertical,
  22. physics: const BouncingScrollPhysics(),
  23. child: Container(
  24. width: double.infinity,
  25. color: context.appColors.whiteBG,
  26. child: Column(
  27. mainAxisSize: MainAxisSize.min,
  28. crossAxisAlignment: CrossAxisAlignment.center,
  29. children: [
  30. //状态
  31. MyTextView(
  32. S.current.processing,
  33. marginTop: 17,
  34. textColor: context.appColors.textPrimary,
  35. fontSize: 24,
  36. isFontMedium: true,
  37. ),
  38. MyTextView(
  39. S.current.status,
  40. marginTop: 12,
  41. textColor: context.appColors.textBlack,
  42. fontSize: 17,
  43. isFontRegular: true,
  44. ),
  45. //Send On时间
  46. RichText(
  47. text: TextSpan(
  48. style: TextStyle(fontSize: 15, fontWeight: FontWeight.w400, color: context.appColors.textBlack),
  49. children: <TextSpan>[
  50. TextSpan(
  51. text: S.current.send_on_sometime(' '),
  52. ),
  53. TextSpan(
  54. text: "21 Nov 2024, 03:08 PM",
  55. style: TextStyle(fontSize: 15, fontWeight: FontWeight.w500, color: context.appColors.textBlack),
  56. ),
  57. ],
  58. ),
  59. ).marginOnly(top: 12,bottom: 28),
  60. //图片
  61. const MyAssetImage(
  62. Assets.formDetailProcessingImg,
  63. width: 40,
  64. height: 51.5,
  65. ),
  66. //提示文本
  67. MyTextView(
  68. S.current.processing_in_progress,
  69. marginTop: 15,
  70. marginBottom: 34,
  71. marginLeft: 50,
  72. marginRight: 50,
  73. textAlign: TextAlign.center,
  74. textColor: context.appColors.textBlack,
  75. fontSize: 15,
  76. isFontRegular: true,
  77. ),
  78. Container(
  79. color: context.appColors.backgroundDark,
  80. height: 10,
  81. ),
  82. Align(
  83. alignment: Alignment.centerLeft, // 左对齐
  84. child: MyTextView(
  85. "Access Card - Owner",
  86. marginTop: 22,
  87. marginBottom: 12,
  88. marginLeft: 18,
  89. textColor: context.appColors.textPrimary,
  90. fontSize: 17,
  91. isFontMedium: true,
  92. ),
  93. ),
  94. Align(
  95. alignment: Alignment.centerLeft, // 左对齐
  96. child: MyTextView(
  97. "Damaged or faulty",
  98. marginBottom: 22,
  99. marginLeft: 18,
  100. textColor: context.appColors.textBlack,
  101. fontSize: 15,
  102. isFontMedium: true,
  103. ),
  104. ),
  105. ],
  106. ),
  107. ),
  108. ).expanded(),
  109. Row(
  110. children: [
  111. MyButton(
  112. onPressed: () {},
  113. text: S.current.send_feedback,
  114. textColor: Colors.white,
  115. fontSize: 15,
  116. fontWeight: FontWeight.w400,
  117. radius: 7,
  118. backgroundColor: context.appColors.btnBgDefault,
  119. ).expanded(),
  120. const SizedBox(width: 10),
  121. MyButton(
  122. onPressed: () {},
  123. text: S.current.view_application,
  124. textColor: Colors.white,
  125. fontSize: 15,
  126. fontWeight: FontWeight.w400,
  127. radius: 7,
  128. backgroundColor: context.appColors.greenBG,
  129. ).expanded(),
  130. ],
  131. ).marginOnly(left: 15, right: 15),
  132. MyButton(
  133. onPressed: () {},
  134. text: S.current.remove,
  135. textColor: Colors.white,
  136. fontSize: 15,
  137. fontWeight: FontWeight.w400,
  138. radius: 7,
  139. backgroundColor: context.appColors.orangeBG,
  140. ).marginOnly(top: 6, left: 15, right: 15, bottom: 17.5),
  141. ],
  142. ),
  143. );
  144. }
  145. }