setting_view.dart 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. import 'package:clean/base/base_page.dart';
  2. import 'package:clean/base/base_view.dart';
  3. import 'package:clean/module/setting/setting_controller.dart';
  4. import 'package:flutter/Material.dart';
  5. import 'package:flutter_screenutil/flutter_screenutil.dart';
  6. import 'package:get/get.dart';
  7. import '../../resource/assets.gen.dart';
  8. class SettingPage extends BasePage<SettingController> {
  9. const SettingPage({super.key});
  10. @override
  11. bool statusBarDarkFont() {
  12. return false;
  13. }
  14. @override
  15. bool immersive() {
  16. return true;
  17. }
  18. @override
  19. Widget buildBody(BuildContext context) {
  20. return Stack(
  21. children: [
  22. SafeArea(
  23. child: Container(
  24. padding: EdgeInsets.only(left: 16.w, top: 14.h, right: 16.w),
  25. child: Column(
  26. mainAxisAlignment: MainAxisAlignment.start,
  27. crossAxisAlignment: CrossAxisAlignment.start,
  28. children: [
  29. GestureDetector(
  30. onTap: () {
  31. Get.back();
  32. },
  33. child: Assets.images.iconCommonBack
  34. .image(width: 28.w, height: 28.w),
  35. ),
  36. SizedBox(
  37. height: 12.h,
  38. ),
  39. Text(
  40. "Settings",
  41. style: TextStyle(
  42. color: Colors.white,
  43. fontSize: 24.sp,
  44. fontWeight: FontWeight.w700,
  45. ),
  46. ),
  47. SizedBox(
  48. height: 25.h,
  49. ),
  50. Container(
  51. height: 124.h,
  52. width: 328.w,
  53. decoration: BoxDecoration(
  54. color: Colors.white.withOpacity(0.12),
  55. borderRadius: BorderRadius.all(
  56. Radius.circular(10.r),
  57. ),
  58. ),
  59. child: Column(
  60. children: [
  61. GestureDetector(
  62. onTap: () {},
  63. child: SizedBox(
  64. height: 62.h,
  65. child: Row(
  66. children: [
  67. SizedBox(
  68. width: 13.w,
  69. ),
  70. Assets.images.iconSettingPrivacy
  71. .image(width: 20.w, height: 20.w),
  72. SizedBox(
  73. width: 8.w,
  74. ),
  75. Text(
  76. "Privacy Policy",
  77. style: TextStyle(
  78. color: Colors.white,
  79. fontSize: 16.sp,
  80. fontWeight: FontWeight.w500,
  81. ),
  82. ),
  83. Spacer(),
  84. Icon(
  85. Icons.arrow_forward,
  86. color: Colors.white.withOpacity(0.55),
  87. ),
  88. SizedBox(
  89. width: 15.w,
  90. ),
  91. ],
  92. ),
  93. ),
  94. ),
  95. Container(
  96. margin: EdgeInsets.symmetric(horizontal: 16.w),
  97. height: 1,
  98. color: Colors.white.withOpacity(0.06),
  99. ),
  100. GestureDetector(
  101. onTap: () {},
  102. child: SizedBox(
  103. height: 61.h,
  104. child: Row(
  105. children: [
  106. SizedBox(
  107. width: 13.w,
  108. ),
  109. Assets.images.iconSettingAgreement
  110. .image(width: 20.w, height: 20.w),
  111. SizedBox(
  112. width: 8.w,
  113. ),
  114. Text(
  115. "User Agreement",
  116. style: TextStyle(
  117. color: Colors.white,
  118. fontSize: 16.sp,
  119. fontWeight: FontWeight.w500,
  120. ),
  121. ),
  122. Spacer(),
  123. Icon(
  124. Icons.arrow_forward,
  125. color: Colors.white.withOpacity(0.55),
  126. ),
  127. SizedBox(
  128. width: 15.w,
  129. ),
  130. ],
  131. ),
  132. ),
  133. )
  134. ],
  135. ),
  136. )
  137. ],
  138. ),
  139. ),
  140. ),
  141. IgnorePointer(
  142. child: Assets.images.bgHome.image(
  143. width: 360.w,
  144. ),
  145. ),
  146. ],
  147. );
  148. }
  149. }