info_screen.dart 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. import 'package:auto_route/auto_route.dart';
  2. import 'package:cs_resources/generated/assets.dart';
  3. import 'package:cs_resources/generated/l10n.dart';
  4. import 'package:cs_resources/theme/app_colors_theme.dart';
  5. import 'package:flutter/material.dart';
  6. import 'package:flutter_hooks/flutter_hooks.dart';
  7. import 'package:hooks_riverpod/hooks_riverpod.dart';
  8. import 'package:shared/utils/log_utils.dart';
  9. import 'package:widgets/ext/ex_widget.dart';
  10. import 'package:widgets/load_state_layout.dart';
  11. import 'package:widgets/my_load_image.dart';
  12. import 'package:widgets/my_text_view.dart';
  13. import 'package:widgets/widget_export.dart';
  14. @RoutePage()
  15. class InfoScreen extends HookConsumerWidget {
  16. @override
  17. Widget build(BuildContext context, WidgetRef ref) {
  18. return SingleChildScrollView(
  19. scrollDirection: Axis.vertical,
  20. physics: const BouncingScrollPhysics(),
  21. child: Container(
  22. width: double.infinity,
  23. child: Column(
  24. mainAxisSize: MainAxisSize.max,
  25. crossAxisAlignment: CrossAxisAlignment.center,
  26. children: [
  27. MyTextView(
  28. S.current.pay_fees_with,
  29. fontSize: 19,
  30. marginTop: 23,
  31. marginBottom: 11,
  32. isFontMedium: true,
  33. textColor: context.appColors.textBlack,
  34. ),
  35. Stack(
  36. children: [
  37. const MyAssetImage(Assets.paymentInfoTopImage, width: double.infinity),
  38. SizedBox(
  39. width: double.infinity,
  40. child: Column(
  41. children: [
  42. RichText(
  43. text: TextSpan(
  44. style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: context.appColors.textPrimary),
  45. children: <TextSpan>[
  46. const TextSpan(
  47. text: "YY Home",
  48. ),
  49. TextSpan(
  50. text: " Pay",
  51. style: TextStyle(color: context.appColors.textBlack),
  52. ),
  53. ],
  54. ),
  55. ),
  56. MyTextView(
  57. S.current.convert_large_recurring_payments_to,
  58. fontSize: 15,
  59. marginTop: 12,
  60. marginBottom: 17,
  61. isFontMedium: true,
  62. textColor: context.appColors.textBlack,
  63. ),
  64. MyTextView(
  65. S.current.rewards,
  66. fontSize: 15,
  67. isFontMedium: true,
  68. cornerRadius: 3,
  69. paddingLeft: 10,
  70. paddingRight: 10,
  71. paddingTop: 6,
  72. marginBottom: 35,
  73. paddingBottom: 6,
  74. backgroundColor: context.appColors.btnBgDefault,
  75. textColor: Colors.white,
  76. ),
  77. //银行卡组
  78. const MyAssetImage(
  79. Assets.paymentInfoCardGroup,
  80. width: 246,
  81. height: 62,
  82. ),
  83. ],
  84. ),
  85. )
  86. ],
  87. ),
  88. RichText(
  89. text: TextSpan(
  90. style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: context.appColors.textPrimary),
  91. children: <TextSpan>[
  92. const TextSpan(
  93. text: "YY Home",
  94. ),
  95. TextSpan(
  96. text: " Pay",
  97. style: TextStyle(color: context.appColors.textBlack),
  98. ),
  99. ],
  100. ),
  101. ).marginOnly(top: 23, bottom: 13),
  102. //文本1
  103. MyTextView(
  104. S.current.info_desc1,
  105. fontSize: 15,
  106. marginBottom: 17,
  107. marginLeft: 25,
  108. marginRight: 25,
  109. textAlign: TextAlign.center,
  110. isFontMedium: true,
  111. textColor: context.appColors.textBlack,
  112. ),
  113. //文本2
  114. MyTextView(
  115. S.current.info_desc2,
  116. fontSize: 15,
  117. marginBottom: 30,
  118. marginLeft: 25,
  119. marginRight: 25,
  120. textAlign: TextAlign.center,
  121. isFontMedium: true,
  122. textColor: context.appColors.textPrimary,
  123. ),
  124. //图标1
  125. const MyAssetImage(
  126. Assets.paymentInfoCashBack,
  127. width: 53.5,
  128. height: 55,
  129. ),
  130. //文本3
  131. MyTextView(
  132. S.current.info_desc3,
  133. fontSize: 15,
  134. marginTop: 31,
  135. marginBottom: 31,
  136. marginLeft: 25,
  137. marginRight: 25,
  138. textAlign: TextAlign.center,
  139. isFontMedium: true,
  140. textColor: context.appColors.textBlack,
  141. ),
  142. //图标2
  143. const MyAssetImage(
  144. Assets.paymentInfoRewards,
  145. width: 49,
  146. height: 53.5,
  147. ),
  148. //文本4
  149. MyTextView(
  150. S.current.info_desc4,
  151. fontSize: 15,
  152. marginTop: 31,
  153. marginBottom: 31,
  154. marginLeft: 25,
  155. marginRight: 25,
  156. textAlign: TextAlign.center,
  157. isFontMedium: true,
  158. textColor: context.appColors.textBlack,
  159. ),
  160. //图标3
  161. const MyAssetImage(
  162. Assets.paymentInfoBusiness,
  163. width: 55.5,
  164. height: 55.5,
  165. ),
  166. //文本5
  167. MyTextView(
  168. S.current.info_desc5,
  169. fontSize: 15,
  170. marginTop: 31,
  171. marginLeft: 25,
  172. marginRight: 25,
  173. textAlign: TextAlign.center,
  174. isFontMedium: true,
  175. textColor: context.appColors.textBlack,
  176. ),
  177. //文本5
  178. MyTextView(
  179. S.current.info_desc6,
  180. fontSize: 15,
  181. marginTop: 25,
  182. marginBottom: 30,
  183. marginLeft: 25,
  184. marginRight: 25,
  185. textAlign: TextAlign.center,
  186. isFontMedium: true,
  187. textColor: context.appColors.textBlack,
  188. ),
  189. ],
  190. ),
  191. ),
  192. );
  193. }
  194. }