update shipment
This commit is contained in:
@@ -74,8 +74,6 @@ class PickUpModel extends BaseModel {
|
|||||||
date: DateTime(2020, 5, 6),
|
date: DateTime(2020, 5, 6),
|
||||||
address: '154-19 64th Ave.\nFlushing, NY 11367',
|
address: '154-19 64th Ave.\nFlushing, NY 11367',
|
||||||
handlingFee: 5000,
|
handlingFee: 5000,
|
||||||
isCourier: true,
|
|
||||||
radioIndex: 4,
|
|
||||||
cargoTypes: [
|
cargoTypes: [
|
||||||
Cargo(type: 'General Cargo', weight: 25),
|
Cargo(type: 'General Cargo', weight: 25),
|
||||||
Cargo(type: 'Medicine', weight: 20),
|
Cargo(type: 'Medicine', weight: 20),
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ class _PickUpEditorState extends State<PickUpEditor> {
|
|||||||
|
|
||||||
MainModel mainModel = Provider.of<MainModel>(context);
|
MainModel mainModel = Provider.of<MainModel>(context);
|
||||||
var boxModel = Provider.of<BoxModel>(context);
|
var boxModel = Provider.of<BoxModel>(context);
|
||||||
// var shipmentModel = Provider.of<ShipmentModel>(context);
|
var shipmentModel = Provider.of<ShipmentModel>(context);
|
||||||
|
|
||||||
return LocalProgress(
|
return LocalProgress(
|
||||||
inAsyncCall: _isLoading,
|
inAsyncCall: _isLoading,
|
||||||
@@ -321,6 +321,37 @@ class _PickUpEditorState extends State<PickUpEditor> {
|
|||||||
phoneNumber: '+1 (292)215-2247'),
|
phoneNumber: '+1 (292)215-2247'),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
: _currVal == 4
|
||||||
|
? Container(
|
||||||
|
child: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
ShippingAddressRow(
|
||||||
|
shippingAddress:
|
||||||
|
shipmentModel.shippingAddresses[1]),
|
||||||
|
Container(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
top: 20, bottom: 15, right: 15),
|
||||||
|
child: Align(
|
||||||
|
alignment: Alignment.bottomRight,
|
||||||
|
child: Container(
|
||||||
|
width: 120,
|
||||||
|
height: 40,
|
||||||
|
child: FloatingActionButton.extended(
|
||||||
|
materialTapTargetSize:
|
||||||
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
|
onPressed: () {},
|
||||||
|
icon: Icon(Icons.add),
|
||||||
|
label: Text(
|
||||||
|
'Select\nAddress',
|
||||||
|
style: TextStyle(fontSize: 12),
|
||||||
|
),
|
||||||
|
backgroundColor: primaryColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
))
|
||||||
: ExpansionTile(
|
: ExpansionTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
'Package Information',
|
'Package Information',
|
||||||
@@ -347,7 +378,8 @@ class _PickUpEditorState extends State<PickUpEditor> {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
BottomUpPageRoute(PickupBoxEditor()),
|
BottomUpPageRoute(
|
||||||
|
PickupBoxEditor()),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
label: Text(
|
label: Text(
|
||||||
@@ -362,7 +394,7 @@ class _PickUpEditorState extends State<PickUpEditor> {
|
|||||||
SizedBox(height: 10.0),
|
SizedBox(height: 10.0),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
_currVal == 3
|
_currVal == 3 || _currVal == 4
|
||||||
? Container()
|
? Container()
|
||||||
: ExpansionTile(
|
: ExpansionTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user