index.dart 948B

12345678910111213141516171819202122232425262728293031323334
  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: const EdgeInsets.fromLTRB(15, 0, 15, 0),
  9. height: 55.w,
  10. decoration: const BoxDecoration(color: Colors.white),
  11. child: Row(
  12. children: [
  13. Padding(
  14. padding: const EdgeInsets.fromLTRB(0, 0, 8, 0),
  15. child: Image(
  16. image: const AssetImage('images/ordersListImga.png'),
  17. fit: BoxFit.cover,
  18. width: 18.w,
  19. ),
  20. ),
  21. Text(
  22. '订单列表',
  23. style: TextStyle(
  24. color: const Color(0xff222222),
  25. fontSize: 20.sp,
  26. fontWeight: FontWeight.bold),
  27. )
  28. ],
  29. ),
  30. );
  31. }
  32. }