|
|
|
@ -113,84 +113,81 @@ class _OrderDetailPage extends State<OrderDetailPage> {
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Container( |
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Stack( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
// height: (orderStatus >= 4 ? 118.h : 118.h) + |
|
|
|
|
// MediaQuery.of(context).padding.top + |
|
|
|
|
// kToolbarHeight + |
|
|
|
|
// 48.h, |
|
|
|
|
// color: Color(0xFF3A405A), |
|
|
|
|
// width: MediaQuery.of(context).size.width, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: DecorationImage( |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
image: AssetImage("assets/image/settlement_bg.webp"), |
|
|
|
|
), |
|
|
|
|
return Stack( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
// height: (orderStatus >= 4 ? 118.h : 118.h) + |
|
|
|
|
// MediaQuery.of(context).padding.top + |
|
|
|
|
// kToolbarHeight + |
|
|
|
|
// 48.h, |
|
|
|
|
// color: Color(0xFF3A405A), |
|
|
|
|
// width: MediaQuery.of(context).size.width, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: DecorationImage( |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
image: AssetImage("assets/image/settlement_bg.webp"), |
|
|
|
|
), |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 375.h, |
|
|
|
|
), |
|
|
|
|
Scaffold( |
|
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
|
appBar: MyAppBar( |
|
|
|
|
title: "订单详情", |
|
|
|
|
titleColor: Colors.white, |
|
|
|
|
background: Colors.transparent, |
|
|
|
|
leadingColor: Colors.white, |
|
|
|
|
brightness: Brightness.dark, |
|
|
|
|
), |
|
|
|
|
body: Container( |
|
|
|
|
child: SingleChildScrollView( |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
child: Container( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
///订单状态显示 |
|
|
|
|
OrderStatus( |
|
|
|
|
orderStatus, |
|
|
|
|
isTakeOut, |
|
|
|
|
sendStatus, |
|
|
|
|
payStatus, |
|
|
|
|
refundStatus, |
|
|
|
|
title, |
|
|
|
|
center, |
|
|
|
|
orderInfo, |
|
|
|
|
), |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 375.h, |
|
|
|
|
), |
|
|
|
|
Scaffold( |
|
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
|
appBar: MyAppBar( |
|
|
|
|
title: "订单详情", |
|
|
|
|
titleColor: Colors.white, |
|
|
|
|
background: Colors.transparent, |
|
|
|
|
leadingColor: Colors.white, |
|
|
|
|
brightness: Brightness.dark, |
|
|
|
|
), |
|
|
|
|
body: Container( |
|
|
|
|
child: SingleChildScrollView( |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
child: Container( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
///订单状态显示 |
|
|
|
|
OrderStatus( |
|
|
|
|
orderStatus, |
|
|
|
|
isTakeOut, |
|
|
|
|
sendStatus, |
|
|
|
|
payStatus, |
|
|
|
|
refundStatus, |
|
|
|
|
title, |
|
|
|
|
center, |
|
|
|
|
orderInfo, |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
///订单取货地址,或, 收货地址 |
|
|
|
|
OrderAddress( |
|
|
|
|
orderStatus, |
|
|
|
|
isTakeOut, |
|
|
|
|
sendStatus, |
|
|
|
|
payStatus, |
|
|
|
|
refundStatus, |
|
|
|
|
title, |
|
|
|
|
center, |
|
|
|
|
paySelected, |
|
|
|
|
_orderCancel, |
|
|
|
|
orderInfo, |
|
|
|
|
), |
|
|
|
|
///订单取货地址,或, 收货地址 |
|
|
|
|
OrderAddress( |
|
|
|
|
orderStatus, |
|
|
|
|
isTakeOut, |
|
|
|
|
sendStatus, |
|
|
|
|
payStatus, |
|
|
|
|
refundStatus, |
|
|
|
|
title, |
|
|
|
|
center, |
|
|
|
|
paySelected, |
|
|
|
|
_orderCancel, |
|
|
|
|
orderInfo, |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
///订单商品 |
|
|
|
|
OrderCommodity(orderInfo), |
|
|
|
|
///订单商品 |
|
|
|
|
OrderCommodity(orderInfo), |
|
|
|
|
|
|
|
|
|
///显示订单信息 |
|
|
|
|
OrderInfoView(orderInfo, isTakeOut), |
|
|
|
|
///显示订单信息 |
|
|
|
|
OrderInfoView(orderInfo, isTakeOut), |
|
|
|
|
|
|
|
|
|
Container( |
|
|
|
|
height: 42.h, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
height: 42.h, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|