UserAddress.dart 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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(padding: EdgeInsets.fromLTRB(17.w, 0, 10.w, 0),
  52. child: Image(
  53. image: AssetImage('images/gpsImgae.png'),
  54. width: 12.w,
  55. ),
  56. ),
  57. Container(
  58. width: 260,
  59. child: Text('请填写详细地址请填写详细地址请填写详细地址',
  60. softWrap: true,
  61. maxLines: 1,
  62. textAlign: TextAlign.left,
  63. overflow: TextOverflow.ellipsis,
  64. style: TextStyle(
  65. fontWeight: FontWeight.bold,
  66. fontSize: 17,
  67. ),),
  68. )
  69. ],
  70. ),
  71. ),
  72. Container(
  73. alignment: Alignment.center,
  74. padding: EdgeInsets.fromLTRB(0, 0, 30.w, 0),
  75. child: GestureDetector(
  76. child: const Text(
  77. '>>',
  78. style: TextStyle(
  79. fontWeight: FontWeight.bold,
  80. fontSize: 17,
  81. ),
  82. ),
  83. onTap: () {
  84. print('修改个人信息');
  85. },
  86. ),
  87. ),
  88. ],
  89. ),
  90. ],
  91. ));
  92. }
  93. }