OtherColumn.dart 3.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. height: 123.w,
  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. Row(
  45. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  46. children: [
  47. Container(
  48. child: Row(
  49. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  50. children: [
  51. Padding(
  52. padding: EdgeInsets.fromLTRB(17.w, 0, 10.w, 0),
  53. child: Image(
  54. image: AssetImage('images/aboutUs.png'),
  55. width: 17.w,
  56. height: 21.w,
  57. ),
  58. ),
  59. Container(
  60. width: 260,
  61. child: GestureDetector(
  62. child: Text(
  63. '请填写详细地址请填写详细地址请填写详细地址',
  64. softWrap: true,
  65. maxLines: 1,
  66. textAlign: TextAlign.left,
  67. overflow: TextOverflow.ellipsis,
  68. style: TextStyle(
  69. fontWeight: FontWeight.bold,
  70. fontSize: 17,
  71. ),
  72. ),
  73. onTap: () {
  74. print('修改地址');
  75. },
  76. ),
  77. )
  78. ],
  79. ),
  80. ),
  81. Container(
  82. alignment: Alignment.center,
  83. padding: EdgeInsets.fromLTRB(0, 0, 30.w, 0),
  84. child: Image(
  85. image: AssetImage('images/userRight.png'),
  86. width: 10.w,
  87. height: 18.w,
  88. ),
  89. ),
  90. ],
  91. ),
  92. ],
  93. ));
  94. }
  95. }