OtherColumn.dart 5.7KB

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