index.dart 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import '../../../../widgets/OrderListCard.dart';
  4. import '../../../orderInfo/index.dart';
  5. class OrderPage extends StatefulWidget {
  6. const OrderPage({Key? key}) : super(key: key);
  7. @override
  8. State<OrderPage> createState() => _OrderPageState();
  9. }
  10. class _OrderPageState extends State<OrderPage> {
  11. @override
  12. Widget build(BuildContext context) {
  13. return ListView(
  14. children: [
  15. Container(
  16. padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
  17. height: 55.w,
  18. decoration: BoxDecoration(
  19. color: Colors.white
  20. ),
  21. child: Row(
  22. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  23. children: [
  24. Row(
  25. children: [
  26. Padding(padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
  27. child:Image(image: AssetImage('images/ordersListImga.png'),fit: BoxFit.cover,width: 18.w,),
  28. ),
  29. Text('订单列表',
  30. style: TextStyle(
  31. color: Color(0xff222222),
  32. fontSize: 20.sp,
  33. fontWeight: FontWeight.bold
  34. ),
  35. )
  36. ],
  37. ),
  38. ],
  39. ),
  40. ),
  41. Column(
  42. mainAxisSize: MainAxisSize.min,
  43. children: [
  44. OrderListCard(),
  45. OrderListCard(),
  46. OrderListCard(),
  47. OrderListCard(),
  48. ],
  49. ),
  50. ],
  51. );
  52. }
  53. }