Browse Source

物流页更改

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

79
lib/order/logistics_information_page.dart

@ -43,7 +43,6 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
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(
@ -52,8 +51,7 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
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(
@ -75,35 +73,26 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
child: Column( 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,
fontWeight: FontWeight.bold,
color: Color(0xff353535)),
),
),
ListView.builder(
itemCount: 8, itemCount: 8,
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
shrinkWrap: true,
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
itemBuilder: (context, position) { itemBuilder: (context, position) {
return Container( return orderTrackItem(position);
child: orderTrackItem(position),
);
}, },
), ),
], ),
]
), ),
), ),
flex: 1,
)
], ],
), ),
), ),
), ),
); );
} }
@ -139,8 +128,7 @@ 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),
@ -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,27 +232,15 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
} }
Widget orderTrackItem(var position) { Widget orderTrackItem(var position) {
return Container( return Row(
width: double.infinity,
height: 50,
child: Row(
children: [ children: [
Column( Column(
children: [ children: [
Text( Text("11-27",style: TextStyle(fontSize:14,fontWeight: FontWeight.bold,color: Color(0xff353535)),),
"11-27",
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Color(0xff353535)),
),
SizedBox( SizedBox(
height:5, height:5,
), ),
Text( Text("12:23",style: TextStyle(fontSize:12,color: Color(0xff868686)),),
"12:23",
style: TextStyle(fontSize: 12, color: Color(0xff868686)),
),
], ],
), ),
SizedBox( SizedBox(
@ -291,38 +268,24 @@ class _LogisticsInformationPage extends State<LogisticsInformationPage> {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text("已签收",style: TextStyle(fontSize:14,fontWeight: FontWeight.bold,color: Colors.black),),
"已签收",
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Colors.black),
),
SizedBox( SizedBox(
height: 10, height: 10,
), ),
Row( Row(
children: [ children: [
Expanded( Text("快件已在泉州市签收",style: TextStyle(fontSize:12,color: Color(0xff353535)),),
child: Text(
"快件已在泉州市签收",
style: TextStyle(fontSize: 12, color: Color(0xff353535)),
),
flex: 1,
),
SizedBox( SizedBox(
width: 9, width: 9,
), ),
Text( Text("签收人 张三",style: TextStyle(fontSize:12,color: Color(0xff353535)),),
"签收人 张三",
style: TextStyle(fontSize: 12, color: Color(0xff353535)),
),
], ],
), ),
], ],
), ),
], ],
),
); );
} }
} }

274
pubspec.lock

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