|
|
@@ -1,6 +1,12 @@ |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/orders_page/models/order_model.dart'; |
|
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
|
|
|
|
|
class OrderItemWidget extends StatelessWidget { |
|
|
|
final OrderModel model; |
|
|
|
|
|
|
|
const OrderItemWidget(this.model, {Key key}) : super(key: key); |
|
|
|
|
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Container( |
|
|
@@ -56,7 +62,13 @@ class OrderItemWidget extends StatelessWidget { |
|
|
|
margin: EdgeInsets.only(right: 10), |
|
|
|
width: 96, |
|
|
|
height: 96, |
|
|
|
color: Colors.black12, |
|
|
|
child: ClipRRect( |
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
child: CachedNetworkImage( |
|
|
|
imageUrl: model.imgUrl ?? '', |
|
|
|
fit: BoxFit.cover, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Expanded( |
|
|
|
child: Column( |
|
|
@@ -80,20 +92,20 @@ class OrderItemWidget extends StatelessWidget { |
|
|
|
padding: EdgeInsets.only(left: 2, right: 2, top: 3, bottom: 3), |
|
|
|
margin: EdgeInsets.only(right: 4), |
|
|
|
child: Text( |
|
|
|
'类型', |
|
|
|
'淘宝', |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 9, |
|
|
|
height: 1, |
|
|
|
color: Colors.purpleAccent, |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
), |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.amber, borderRadius: BorderRadius.circular(2.5)), |
|
|
|
color: Colors.redAccent, borderRadius: BorderRadius.circular(2.5)), |
|
|
|
), |
|
|
|
)); |
|
|
|
list.add( |
|
|
|
TextSpan( |
|
|
|
text: '桶装水抽水器饮水机泵器动桶装水抽水器饮水机泵器动', |
|
|
|
text: model.title, |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 15, |
|
|
|
color: Color(0xff333333), |
|
|
|