index.dart 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. class AddressList extends StatefulWidget {
  4. const AddressList({Key? key}) : super(key: key);
  5. @override
  6. _AddressList createState() => _AddressList();
  7. }
  8. class _AddressList extends State<AddressList> {
  9. @override
  10. Widget build(BuildContext context) {
  11. return Scaffold(
  12. appBar: AppBar(
  13. elevation: 0,
  14. centerTitle: true,
  15. backgroundColor: Colors.white,
  16. title: Text(
  17. '地址管理',
  18. style: TextStyle(
  19. color: Colors.black,
  20. fontSize: 17.sp,
  21. letterSpacing: 2,
  22. fontWeight: FontWeight.bold),
  23. ),
  24. ),
  25. body: Container(
  26. padding: EdgeInsets.all(15.w),
  27. child: Column(
  28. children: [
  29. Text('地址'),
  30. GestureDetector(
  31. onTap: () {},
  32. child: Container(
  33. width: 345.w,
  34. height: 49.h,
  35. decoration: BoxDecoration(
  36. borderRadius: BorderRadius.all(Radius.circular(10.w)),
  37. color:Color(0xFFFF703B),
  38. ),
  39. child: Text(
  40. '+新增收货地址',
  41. style: TextStyle(
  42. color: Colors.white,
  43. fontWeight: FontWeight.bold,
  44. fontSize: 20.sp
  45. ),
  46. ),
  47. ),
  48. ),
  49. ],
  50. ),
  51. ),
  52. );
  53. }
  54. }