UserAddress.dart 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import 'package:get/get.dart';
  4. class UserAddress extends StatelessWidget {
  5. const UserAddress({Key? key}) : super(key: key);
  6. @override
  7. Widget build(BuildContext context) {
  8. return Container(
  9. alignment: Alignment.center,
  10. height: 123.w,
  11. width: 345.w,
  12. margin: EdgeInsets.fromLTRB(0, 15.w, 0, 15.w),
  13. decoration: BoxDecoration(
  14. borderRadius: BorderRadius.circular(30),
  15. color: Colors.white,
  16. boxShadow: [
  17. BoxShadow(
  18. blurRadius: 10, //阴影范围
  19. spreadRadius: 0.1, //阴影浓度
  20. color: Colors.grey.withOpacity(0.2), //阴影颜色
  21. ),
  22. ],
  23. ),
  24. child: Column(
  25. children: [
  26. Container(
  27. margin: EdgeInsets.fromLTRB(0, 30.w, 0, 20.w),
  28. alignment: Alignment.topLeft,
  29. decoration: const BoxDecoration(
  30. border: Border(
  31. left: BorderSide(width: 5, color: Color(0xff000000)
  32. // 0x17000000
  33. ))),
  34. child: Padding(
  35. padding: EdgeInsets.fromLTRB(12.w, 0, 0, 0),
  36. child: Text(
  37. '地址信息',
  38. style: TextStyle(
  39. color: Color(0xff333333),
  40. fontWeight: FontWeight.bold,
  41. fontSize: 17.sp,
  42. ),
  43. ),
  44. )),
  45. GestureDetector(
  46. child: Row(
  47. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  48. children: [
  49. Container(
  50. child: Row(
  51. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  52. children: [
  53. Padding(
  54. padding: EdgeInsets.fromLTRB(17.w, 0, 10.w, 0),
  55. child: Image(
  56. image: AssetImage('images/gpsImgae.png'),
  57. width: 12.w,
  58. ),
  59. ),
  60. Container(
  61. width: 260,
  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. ),
  74. ],
  75. ),
  76. ),
  77. Container(
  78. alignment: Alignment.center,
  79. padding: EdgeInsets.fromLTRB(0, 0, 30.w, 0),
  80. child: Text(
  81. '>>',
  82. style: TextStyle(
  83. fontWeight: FontWeight.bold,
  84. fontSize: 17,
  85. ),
  86. ),
  87. ),
  88. ],
  89. ),
  90. onTap: () {
  91. Get.toNamed("/addressList");
  92. },
  93. ),
  94. ],
  95. ));
  96. }
  97. }