OtherColumn.dart 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import 'package:get/get.dart';
  4. class OtherColumn extends StatelessWidget {
  5. const OtherColumn({Key? key}) : super(key: key);
  6. @override
  7. Widget build(BuildContext context) {
  8. return Container(
  9. alignment: Alignment.center,
  10. width: 345.w,
  11. margin: EdgeInsets.fromLTRB(0, 15.w, 0, 15.w),
  12. decoration: BoxDecoration(
  13. borderRadius: BorderRadius.circular(30),
  14. color: Colors.white,
  15. boxShadow: [
  16. BoxShadow(
  17. blurRadius: 10, //阴影范围
  18. spreadRadius: 0.1, //阴影浓度
  19. color: Colors.grey.withOpacity(0.2), //阴影颜色
  20. ),
  21. ],
  22. ),
  23. child: Column(
  24. children: [
  25. Container(
  26. margin: EdgeInsets.fromLTRB(0, 30.w, 0, 20.w),
  27. alignment: Alignment.topLeft,
  28. decoration: const BoxDecoration(
  29. border: Border(
  30. left: BorderSide(width: 5, color: Color(0xff000000)
  31. // 0x17000000
  32. ))),
  33. child: Padding(
  34. padding: EdgeInsets.fromLTRB(12.w, 0, 0, 0),
  35. child: Text(
  36. '设置',
  37. style: TextStyle(
  38. color: Color(0xff333333),
  39. fontWeight: FontWeight.bold,
  40. fontSize: 17.sp,
  41. ),
  42. ),
  43. )),
  44. Container(
  45. child: Column(
  46. children: [
  47. GestureDetector(
  48. onTap: () {
  49. Get.toNamed('/aboutUs');
  50. },
  51. child: Container(
  52. height: 45.w,
  53. width: 310.w,
  54. margin: EdgeInsets.fromLTRB(0, 10.w, 0, 0),
  55. decoration: const BoxDecoration(
  56. border: Border(
  57. bottom: BorderSide(
  58. width: 0.5, color: Color(0x20000000)
  59. // 0x17000000
  60. ))),
  61. child: ListTile(
  62. contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
  63. // 这边使用了contentPadding
  64. leading: Image(
  65. image: AssetImage('images/aboutUs.png'),
  66. width: 18.w,
  67. height: 21.w,
  68. ),
  69. title: Transform(
  70. transform: Matrix4.translationValues(-20, 0.0, 0.0),
  71. child: Text("关于我们",
  72. style: TextStyle(
  73. fontSize: 17.sp, color: Color(0xff333333))),
  74. ),
  75. trailing: Image(
  76. image: AssetImage('images/userRight.png'),
  77. width: 10.w,
  78. height: 18.w,
  79. ),
  80. ),
  81. ),
  82. ),
  83. GestureDetector(
  84. onTap: () {
  85. Get.toNamed('/agreement');
  86. },
  87. child: Container(
  88. margin: EdgeInsets.fromLTRB(0, 10.w, 0, 0),
  89. width: 310.w,
  90. height: 45.w,
  91. decoration: const BoxDecoration(
  92. border: Border(
  93. bottom: BorderSide(
  94. width: 0.5, color: Color(0x20000000)
  95. // 0x17000000
  96. ))),
  97. child: ListTile(
  98. contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
  99. leading: Image(
  100. image: AssetImage('images/versionUpdate.png'),
  101. width: 18.w,
  102. height: 21.w,
  103. ),
  104. title: Transform(
  105. transform: Matrix4.translationValues(-20, 0.0, 0.0),
  106. child: Text("用户协议及隐私政策",
  107. style: TextStyle(
  108. fontSize: 17.sp, color: Color(0xff333333))),
  109. ),
  110. trailing: Image(
  111. image: AssetImage('images/userRight.png'),
  112. width: 10.w,
  113. height: 18.w,
  114. ),
  115. ),
  116. ),
  117. ),
  118. GestureDetector(
  119. onTap: () {
  120. Get.toNamed('/feedback');
  121. },
  122. child: Container(
  123. margin: EdgeInsets.fromLTRB(0, 10.w, 0, 20.w),
  124. width: 310.w,
  125. height: 45.w,
  126. decoration: const BoxDecoration(
  127. border: Border(
  128. bottom: BorderSide(
  129. width: 0.5, color: Color(0x20000000)
  130. // 0x17000000
  131. ))),
  132. child: ListTile(
  133. contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
  134. leading: Image(
  135. image: AssetImage('images/feedbacks.png'),
  136. width: 18.w,
  137. height: 21.w,
  138. ),
  139. title: Transform(
  140. transform: Matrix4.translationValues(-20, 0.0, 0.0),
  141. child: Text("意见反馈",
  142. style: TextStyle(
  143. fontSize: 17.sp, color: Color(0xff333333))),
  144. ),
  145. trailing: Image(
  146. image: AssetImage('images/userRight.png'),
  147. width: 10.w,
  148. height: 18.w,
  149. ),
  150. ),
  151. ),
  152. ),
  153. ],
  154. ),
  155. )
  156. ],
  157. ));
  158. }
  159. }