index.dart 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. class OrderHead extends StatelessWidget {
  4. const OrderHead({Key? key}) : super(key: key);
  5. @override
  6. Widget build(BuildContext context) {
  7. return Container(
  8. padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
  9. height: 55.w,
  10. decoration: BoxDecoration(color: Colors.white),
  11. child: Row(
  12. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  13. children: [
  14. Row(
  15. children: [
  16. Padding(
  17. padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
  18. child: Image(
  19. image: AssetImage('images/ordersListImga.png'),
  20. fit: BoxFit.cover,
  21. width: 18.w,
  22. ),
  23. ),
  24. Text(
  25. '订单列表',
  26. style: TextStyle(
  27. color: Color(0xff222222),
  28. fontSize: 20.sp,
  29. fontWeight: FontWeight.bold),
  30. )
  31. ],
  32. ),
  33. ],
  34. ),
  35. );
  36. }
  37. }