Browse Source

物流页更改

null_safety
w-R 4 years ago
parent
commit
e8be5ad31f
  1. 227
      lib/order/logistics_information_page.dart
  2. 274
      pubspec.lock

227
lib/order/logistics_information_page.dart

@ -42,75 +42,64 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
titleSpacing: 2, titleSpacing: 2,
leadingWidth: 56, leadingWidth: 56,
), ),
body: Container( body:Container(
height: MediaQuery.of(context).size.height,
child: SingleChildScrollView( child: SingleChildScrollView(
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
child: Column( child:Column(
children: [ children: [
_orderInformation(), _orderInformation(),
SizedBox( SizedBox(
height: 16, height: 16,
), ),
Expanded( Container(
child: Container( margin: EdgeInsets.symmetric(vertical: 8, horizontal: 16),
margin: EdgeInsets.symmetric(vertical: 8, horizontal: 16), padding: EdgeInsets.all(16),
padding: EdgeInsets.all(16), decoration: BoxDecoration(
decoration: BoxDecoration( color: Colors.white,
color: Colors.white, borderRadius: BorderRadius.only(
borderRadius: BorderRadius.only( topLeft: Radius.circular(8),
topLeft: Radius.circular(8), bottomLeft: Radius.circular(4),
bottomLeft: Radius.circular(4), topRight: Radius.circular(8),
topRight: Radius.circular(8), bottomRight: Radius.circular(4),
bottomRight: Radius.circular(4),
),
boxShadow: [
BoxShadow(
color: Colors.black.withAlpha(12),
offset: Offset(0, 2),
blurRadius: 14,
spreadRadius: 0)
],
), ),
child: Column( boxShadow: [
BoxShadow(
color: Colors.black.withAlpha(12),
offset: Offset(0, 2),
blurRadius: 14,
spreadRadius: 0)
],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Padding( Padding(padding:EdgeInsets.only(bottom: 32),
padding: EdgeInsets.only(bottom: 32), child:Text("订单跟踪",style: TextStyle(fontSize:16,fontWeight: FontWeight.bold,color: Color(0xff353535)),),),
child: Text( SizedBox(
"订单跟踪", height: 500,
style: TextStyle( child: ListView.builder(
fontSize: 16, itemCount: 8,
fontWeight: FontWeight.bold, scrollDirection: Axis.vertical,
color: Color(0xff353535)), physics: BouncingScrollPhysics(),
itemBuilder: (context, position) {
return orderTrackItem(position);
},
), ),
), ),
ListView.builder( ]
itemCount: 8,
scrollDirection: Axis.vertical,
shrinkWrap: true,
physics: BouncingScrollPhysics(),
itemBuilder: (context, position) {
return Container(
child: orderTrackItem(position),
);
},
),
],
),
), ),
flex: 1, ),
)
], ],
), ),
), ),
), ),
); );
} }
Widget _orderInformation() { Widget _orderInformation() {
return Container( return Container(
margin: EdgeInsets.only(left: 16, right: 16), margin: EdgeInsets.only(left: 16,right: 16),
padding: EdgeInsets.all(16), padding: EdgeInsets.all(16),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
@ -139,9 +128,8 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
Container( Container(
padding: padding: EdgeInsets.only(left: 32,right: 32,top: 5,bottom:5),
EdgeInsets.only(left: 32, right: 32, top: 5, bottom: 5), decoration:BoxDecoration(
decoration: BoxDecoration(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(0), topLeft: Radius.circular(0),
bottomLeft: Radius.circular(4), bottomLeft: Radius.circular(4),
@ -150,9 +138,9 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
), ),
color: Color(0x53000000), color: Color(0x53000000),
), ),
child: Text( child:Text(
"共3件", "共3件",
style: TextStyle( style:TextStyle(
fontSize: 12, fontSize: 12,
color: Colors.white, color: Colors.white,
), ),
@ -185,7 +173,8 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
style: TextStyle( style: TextStyle(
color: Color(0xFF32A060), color: Color(0xFF32A060),
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold
),
) )
], ],
), ),
@ -243,86 +232,60 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
} }
Widget orderTrackItem(var position) { Widget orderTrackItem(var position) {
return Container( return Row(
width: double.infinity, children: [
height: 50, Column(
child: Row( children: [
children: [ Text("11-27",style: TextStyle(fontSize:14,fontWeight: FontWeight.bold,color: Color(0xff353535)),),
Column( SizedBox(
children: [ height:5,
Text( ),
"11-27", Text("12:23",style: TextStyle(fontSize:12,color: Color(0xff868686)),),
style: TextStyle( ],
fontSize: 14, ),
fontWeight: FontWeight.bold, SizedBox(
color: Color(0xff353535)), width: 28,
), ),
SizedBox( Column(
height: 5, children: [
), Image.asset(
Text( "assets/image/icon_sign.png",
"12:23", width: 24,
style: TextStyle(fontSize: 12, color: Color(0xff868686)), height: 24,
), ),
], Container(
), width: 1,
SizedBox( height: 30,
width: 28, decoration: new BoxDecoration(
), color: position < 7 ? Colors.black : Colors.white,
Column(
children: [
Image.asset(
"assets/image/icon_sign.png",
width: 24,
height: 24,
), ),
Container( )
width: 1, ],
height: 30, ),
decoration: new BoxDecoration( SizedBox(
color: position < 7 ? Colors.black : Colors.white, width: 28,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("已签收",style: TextStyle(fontSize:14,fontWeight: FontWeight.bold,color: Colors.black),),
SizedBox(
height: 10,
),
Row(
children: [
Text("快件已在泉州市签收",style: TextStyle(fontSize:12,color: Color(0xff353535)),),
SizedBox(
width: 9,
), ),
) Text("签收人 张三",style: TextStyle(fontSize:12,color: Color(0xff353535)),),
], ],
), ),
SizedBox( ],
width: 28, ),
),
Column( ],
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"已签收",
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Colors.black),
),
SizedBox(
height: 10,
),
Row(
children: [
Expanded(
child: Text(
"快件已在泉州市签收",
style: TextStyle(fontSize: 12, color: Color(0xff353535)),
),
flex: 1,
),
SizedBox(
width: 9,
),
Text(
"签收人 张三",
style: TextStyle(fontSize: 12, color: Color(0xff353535)),
),
],
),
],
),
],
),
); );
} }
} }

274
pubspec.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save