index.dart 1.3KB

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