update shipment info
This commit is contained in:
@@ -339,8 +339,10 @@
|
|||||||
"FCSshipment.cargo_manifest":"Download cargo manifest",
|
"FCSshipment.cargo_manifest":"Download cargo manifest",
|
||||||
"FCSshipment.create":"Create new shipment",
|
"FCSshipment.create":"Create new shipment",
|
||||||
"FCSshipment.update":"Update shipment",
|
"FCSshipment.update":"Update shipment",
|
||||||
"FCSshipment.ship.btn":"Ship",
|
"FCSshipment.ship.btn":"Ship this shipment",
|
||||||
"FCSshipment.ship.confirm":"Confirm ship?",
|
"FCSshipment.ship.confirm":"Confirm ship?",
|
||||||
|
"FCSshipment.cancel.btn":"Cancel this shipment",
|
||||||
|
"FCSshipment.cancel.confirm":"Cancel this shipment?",
|
||||||
"FCSshipment.popupmenu.all":"All shipments",
|
"FCSshipment.popupmenu.all":"All shipments",
|
||||||
"FCSshipment.popupmenu.active":"Active shipments",
|
"FCSshipment.popupmenu.active":"Active shipments",
|
||||||
"FCSshipment.popupmenu.shipped":"Shipped shipments",
|
"FCSshipment.popupmenu.shipped":"Shipped shipments",
|
||||||
|
|||||||
@@ -338,8 +338,10 @@
|
|||||||
"FCSshipment.cargo_manifest":"ကုန်ပစ္စည်းကိုဒေါင်းမည်",
|
"FCSshipment.cargo_manifest":"ကုန်ပစ္စည်းကိုဒေါင်းမည်",
|
||||||
"FCSshipment.create":"တင်ပို့ခြင်းအသစ်ပြုလုပ်မည်",
|
"FCSshipment.create":"တင်ပို့ခြင်းအသစ်ပြုလုပ်မည်",
|
||||||
"FCSshipment.update":"တင်ပို့ခြင်းပြုပြင်မည်",
|
"FCSshipment.update":"တင်ပို့ခြင်းပြုပြင်မည်",
|
||||||
"FCSshipment.ship.btn":"Ship",
|
"FCSshipment.ship.btn":"Ship this shipment",
|
||||||
"FCSshipment.ship.confirm":"Confirm ship?",
|
"FCSshipment.ship.confirm":"Confirm ship?",
|
||||||
|
"FCSshipment.cancel.btn":"Cancel this shipment",
|
||||||
|
"FCSshipment.cancel.confirm":"Cancel this shipment?",
|
||||||
"FCSshipment.popupmenu.all":"All shipments",
|
"FCSshipment.popupmenu.all":"All shipments",
|
||||||
"FCSshipment.popupmenu.active":"Active shipments",
|
"FCSshipment.popupmenu.active":"Active shipments",
|
||||||
"FCSshipment.popupmenu.shipped":"Shipped shipments",
|
"FCSshipment.popupmenu.shipped":"Shipped shipments",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ const buttonColor = const Color(0xFFFFFFFF);
|
|||||||
const buttonBkColor = const Color(0xFF268944);
|
const buttonBkColor = const Color(0xFF268944);
|
||||||
const labelColor = const Color(0xFF757575);
|
const labelColor = const Color(0xFF757575);
|
||||||
var dividerColor = Colors.grey.shade400;
|
var dividerColor = Colors.grey.shade400;
|
||||||
|
const dangerColor= const Color(0xffff0606);
|
||||||
|
|
||||||
const TextStyle labelStyle =
|
const TextStyle labelStyle =
|
||||||
TextStyle(fontSize: 20, color: labelColor, fontWeight: FontWeight.w500);
|
TextStyle(fontSize: 20, color: labelColor, fontWeight: FontWeight.w500);
|
||||||
|
|||||||
@@ -73,11 +73,6 @@ class _FcsShipmentInfoState extends State<FcsShipmentInfo> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
// final shipmentNumberBox = DisplayText(
|
|
||||||
// text: _shipmentNumberController.text,
|
|
||||||
// labelTextKey: "FCSshipment.number",
|
|
||||||
// iconData: Ionicons.ios_airplane,
|
|
||||||
// );
|
|
||||||
final cutoffDateDBox = DisplayText(
|
final cutoffDateDBox = DisplayText(
|
||||||
text: _cutoffDateController.text,
|
text: _cutoffDateController.text,
|
||||||
labelTextKey: "FCSshipment.cutoff_date",
|
labelTextKey: "FCSshipment.cutoff_date",
|
||||||
@@ -99,12 +94,6 @@ class _FcsShipmentInfoState extends State<FcsShipmentInfo> {
|
|||||||
iconData: Octicons.package,
|
iconData: Octicons.package,
|
||||||
);
|
);
|
||||||
|
|
||||||
// final departureDateBox = DisplayText(
|
|
||||||
// text: _departureDateControler.text,
|
|
||||||
// labelTextKey: "FCSshipment.departure_date",
|
|
||||||
// iconData: Icons.date_range,
|
|
||||||
// );
|
|
||||||
|
|
||||||
final shipTypeBox = DisplayText(
|
final shipTypeBox = DisplayText(
|
||||||
text: _shipmentTypeControler.text,
|
text: _shipmentTypeControler.text,
|
||||||
labelTextKey: "FCSshipment.shipment_type",
|
labelTextKey: "FCSshipment.shipment_type",
|
||||||
@@ -132,19 +121,34 @@ class _FcsShipmentInfoState extends State<FcsShipmentInfo> {
|
|||||||
final statusBox = DisplayText(
|
final statusBox = DisplayText(
|
||||||
text: _statusController.text,
|
text: _statusController.text,
|
||||||
labelTextKey: "FCSshipment.status",
|
labelTextKey: "FCSshipment.status",
|
||||||
iconData: Ionicons.md_chevron_back_circle_outline,
|
iconData: Feather.clock,
|
||||||
);
|
);
|
||||||
|
|
||||||
final shipBtn = LocalButton(
|
final shipBtn = Padding(
|
||||||
textKey: "FCSshipment.ship.btn",
|
padding: const EdgeInsets.symmetric(horizontal: 30),
|
||||||
callBack: _ship,
|
child: LocalButton(
|
||||||
|
textKey: "FCSshipment.ship.btn",
|
||||||
|
callBack: _ship,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
final cancelBtn = Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 30),
|
||||||
|
child: LocalButton(
|
||||||
|
color: dangerColor,
|
||||||
|
textKey: "FCSshipment.cancel.btn",
|
||||||
|
callBack: () {
|
||||||
|
showConfirmDialog(context, "FCSshipment.cancel.confirm", () {});
|
||||||
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return LocalProgress(
|
return LocalProgress(
|
||||||
inAsyncCall: _isLoading,
|
inAsyncCall: _isLoading,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
appBar: LocalAppBar(
|
appBar: LocalAppBar(
|
||||||
titleWidget: Text(_shipmentNumberController.text,style:TextStyle(fontSize: 20,color: primaryColor)),
|
titleWidget: Text(_shipmentNumberController.text,
|
||||||
|
style: TextStyle(fontSize: 20, color: primaryColor)),
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
labelColor: primaryColor,
|
labelColor: primaryColor,
|
||||||
arrowColor: primaryColor,
|
arrowColor: primaryColor,
|
||||||
@@ -156,60 +160,46 @@ class _FcsShipmentInfoState extends State<FcsShipmentInfo> {
|
|||||||
//menuPopWidget(context)
|
//menuPopWidget(context)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
// appBar: AppBar(
|
|
||||||
// centerTitle: true,
|
|
||||||
// leading: new IconButton(
|
|
||||||
// icon: new Icon(CupertinoIcons.back, color: primaryColor, size: 30),
|
|
||||||
// onPressed: () => Navigator.of(context).pop(),
|
|
||||||
// ),
|
|
||||||
// shadowColor: Colors.transparent,
|
|
||||||
// backgroundColor: Colors.white,
|
|
||||||
// title: LocalText(
|
|
||||||
// context,
|
|
||||||
// "FCSshipment.form.title",
|
|
||||||
// fontSize: 20,
|
|
||||||
// color: primaryColor,
|
|
||||||
// ),
|
|
||||||
// actions: [
|
|
||||||
// IconButton(
|
|
||||||
// icon: Icon(Icons.edit, color: primaryColor),
|
|
||||||
// onPressed: _edit,
|
|
||||||
// ),
|
|
||||||
// menuPopWidget(context)
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
body: Card(
|
body: Card(
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
child: Column(
|
child: Padding(
|
||||||
children: <Widget>[
|
padding: const EdgeInsets.all(10.0),
|
||||||
Expanded(
|
child: ListView(children: <Widget>[
|
||||||
child: Padding(
|
statusBox,
|
||||||
padding: const EdgeInsets.all(10.0),
|
Row(mainAxisAlignment: MainAxisAlignment.end, children: [
|
||||||
child: ListView(children: <Widget>[
|
Expanded(
|
||||||
//shipmentNumberBox,
|
child: cutoffDateDBox,
|
||||||
statusBox,
|
flex: 2,
|
||||||
Row(mainAxisAlignment: MainAxisAlignment.end,
|
),
|
||||||
children:[Expanded(child: cutoffDateDBox,flex: 2,),
|
Flexible(
|
||||||
Expanded(child: etaBox,),
|
child: etaBox,
|
||||||
]),
|
),
|
||||||
// departureDateBox,
|
]),
|
||||||
Row(children: [ Expanded(child: cartonBox,flex: 2,),
|
Row(
|
||||||
Flexible(child: packageBox),],),
|
children: [
|
||||||
|
Expanded(
|
||||||
shipTypeBox,
|
child: cartonBox,
|
||||||
consigneeBox,
|
flex: 2,
|
||||||
portBox,
|
),
|
||||||
destinationBox,
|
Flexible(child: packageBox),
|
||||||
|
],
|
||||||
_fcsShipment?.status == fcs_shipment_confirmed_status
|
),
|
||||||
? shipBtn
|
shipTypeBox,
|
||||||
: Container(),
|
consigneeBox,
|
||||||
SizedBox(
|
portBox,
|
||||||
height: 20,
|
destinationBox,
|
||||||
)
|
const SizedBox(height: 30),
|
||||||
]),
|
_fcsShipment?.status == fcs_shipment_confirmed_status
|
||||||
)),
|
? shipBtn
|
||||||
],
|
: Container(),
|
||||||
|
_fcsShipment?.status == fcs_shipment_confirmed_status
|
||||||
|
? Container(
|
||||||
|
padding: EdgeInsets.only(top: 3), child: cancelBtn)
|
||||||
|
: Container(),
|
||||||
|
SizedBox(
|
||||||
|
height: 20,
|
||||||
|
)
|
||||||
|
]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user