UserAddress.dart 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. class UserAddress extends StatelessWidget {
  4. const UserAddress({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/gpsImgae.png'),
  55. width: 12.w,
  56. ),
  57. ),
  58. Container(
  59. width: 260,
  60. child: GestureDetector(
  61. child: Text(
  62. '请填写详细地址请填写详细地址请填写详细地址',
  63. softWrap: true,
  64. maxLines: 1,
  65. textAlign: TextAlign.left,
  66. overflow: TextOverflow.ellipsis,
  67. style: TextStyle(
  68. fontWeight: FontWeight.bold,
  69. fontSize: 17,
  70. ),
  71. ),
  72. onTap: () {
  73. print('修改地址');
  74. },
  75. ),
  76. )
  77. ],
  78. ),
  79. ),
  80. Container(
  81. alignment: Alignment.center,
  82. padding: EdgeInsets.fromLTRB(0, 0, 30.w, 0),
  83. child: Text(
  84. '>>',
  85. style: TextStyle(
  86. fontWeight: FontWeight.bold,
  87. fontSize: 17,
  88. ),
  89. ),
  90. ),
  91. ],
  92. ),
  93. ],
  94. ));
  95. }
  96. }