services_contact_page.dart 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. import 'package:cs_resources/theme/app_colors_theme.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:auto_route/auto_route.dart';
  4. import 'package:hooks_riverpod/hooks_riverpod.dart';
  5. import 'package:router/ext/auto_router_extensions.dart';
  6. import 'package:shared/utils/log_utils.dart';
  7. import 'package:shared/utils/color_utils.dart';
  8. import 'package:widgets/ext/ex_widget.dart';
  9. import 'package:widgets/my_appbar.dart';
  10. import 'package:widgets/my_load_image.dart';
  11. import 'package:widgets/my_text_view.dart';
  12. import 'package:widgets/widget_export.dart';
  13. import 'package:cs_resources/generated/assets.dart';
  14. import '../../../router/page/services_page_router.dart';
  15. import './services_contact_vm.dart';
  16. @RoutePage()
  17. class ServicesContactPage extends HookConsumerWidget {
  18. const ServicesContactPage({Key? key}) : super(key: key);
  19. //启动当前页面
  20. static void startInstance({BuildContext? context}) {
  21. if (context != null) {
  22. context.router.push(const ServicesContactPageRoute());
  23. } else {
  24. appRouter.push(const ServicesContactPageRoute());
  25. }
  26. }
  27. Widget _buildDetailTop(BuildContext context, WidgetRef ref, _vm) {
  28. // List itemsList = _vm.state.list.toList();
  29. return Column(
  30. children: [
  31. const Column(children: [
  32. MyAssetImage(
  33. Assets.propertyHomeLoanBg,
  34. // width: 15,
  35. // height: 15,
  36. ),
  37. ]),
  38. Column(
  39. crossAxisAlignment: CrossAxisAlignment.start,
  40. mainAxisAlignment: MainAxisAlignment.start,
  41. children: [
  42. const Text(
  43. 'IMPORTANT',
  44. style: TextStyle(
  45. fontSize: 18.0,
  46. color: Colors.black,
  47. fontWeight: FontWeight.w700), // 设置字体大小
  48. ).marginOnly(bottom: 15),
  49. const Text(
  50. 'Dear Residents,STANDARD OPERATING PROCEDURE FORREPLACEMENT VEHICLES ANDOVERNICHT PARKING VEHICLES',
  51. style: TextStyle(
  52. fontSize: 15.0,
  53. color: Colors.black,
  54. fontWeight: FontWeight.w400), // 设置字体大小
  55. ).marginOnly(bottom: 28),
  56. Row(
  57. children: [
  58. Container(
  59. child: const Text(
  60. 'CONTACT US',
  61. style: TextStyle(
  62. fontSize: 18.0,
  63. color: Colors.black,
  64. fontWeight: FontWeight.w700), // 设置字体大小
  65. ),
  66. ).paddingOnly(top: 23),
  67. ],
  68. ).border(top: 1, color: ColorUtils.string2Color('#F2F3F6')),
  69. const Column(
  70. crossAxisAlignment: CrossAxisAlignment.start,
  71. mainAxisAlignment: MainAxisAlignment.start,
  72. children: [
  73. Text(
  74. 'Whatsapp',
  75. style: TextStyle(
  76. fontSize: 17.0,
  77. color: Colors.black,
  78. fontWeight: FontWeight.w700), // 设置字体大小
  79. ),
  80. Text(
  81. '+65 67175555',
  82. style: TextStyle(
  83. fontSize: 17.0,
  84. color: Colors.black,
  85. fontWeight: FontWeight.w400), // 设置字体大小
  86. ),
  87. ],
  88. ).marginOnly(top: 25),
  89. const Column(
  90. crossAxisAlignment: CrossAxisAlignment.start,
  91. mainAxisAlignment: MainAxisAlignment.start,
  92. children: [
  93. Text(
  94. 'Whatsapp',
  95. style: TextStyle(
  96. fontSize: 17.0,
  97. color: Colors.black,
  98. fontWeight: FontWeight.w700), // 设置字体大小
  99. ),
  100. Text(
  101. '+65 67175555',
  102. style: TextStyle(
  103. fontSize: 17.0,
  104. color: Colors.black,
  105. fontWeight: FontWeight.w400), // 设置字体大小
  106. ),
  107. ],
  108. ).marginOnly(top: 25),
  109. const Column(
  110. crossAxisAlignment: CrossAxisAlignment.start,
  111. mainAxisAlignment: MainAxisAlignment.start,
  112. children: [
  113. Text(
  114. 'Whatsapp',
  115. style: TextStyle(
  116. fontSize: 17.0,
  117. color: Colors.black,
  118. fontWeight: FontWeight.w700), // 设置字体大小
  119. ),
  120. Text(
  121. '+65 67175555',
  122. style: TextStyle(
  123. fontSize: 17.0,
  124. color: Colors.black,
  125. fontWeight: FontWeight.w400), // 设置字体大小
  126. ),
  127. ],
  128. ).marginOnly(top: 25),
  129. const Column(
  130. crossAxisAlignment: CrossAxisAlignment.start,
  131. mainAxisAlignment: MainAxisAlignment.start,
  132. children: [
  133. Text(
  134. 'Whatsapp',
  135. style: TextStyle(
  136. fontSize: 17.0,
  137. color: Colors.black,
  138. fontWeight: FontWeight.w700), // 设置字体大小
  139. ),
  140. Text(
  141. '+65 67175555',
  142. style: TextStyle(
  143. fontSize: 17.0,
  144. color: Colors.black,
  145. fontWeight: FontWeight.w400), // 设置字体大小
  146. ),
  147. ],
  148. ).marginOnly(top: 25),
  149. ],
  150. ).paddingOnly(top: 15, bottom: 50, left: 15, right: 15),
  151. ],
  152. );
  153. }
  154. @override
  155. Widget build(BuildContext context, WidgetRef ref) {
  156. final _vm = ref.read(servicesContactVmProvider.notifier);
  157. return Scaffold(
  158. appBar: MyAppBar.appBar(
  159. context,
  160. "Lift Padding",
  161. backgroundColor: context.appColors.whiteBG,
  162. ),
  163. body: Column(children: [
  164. Expanded(
  165. child: SingleChildScrollView(
  166. scrollDirection: Axis.vertical,
  167. physics: const BouncingScrollPhysics(),
  168. clipBehavior: Clip.none,
  169. child: _buildDetailTop(context, ref, _vm)),
  170. ),
  171. ]),
  172. );
  173. }
  174. }