add submit widget for mix carton
This commit is contained in:
@@ -176,14 +176,14 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
//iconData: Ionicons.ios_airplane,
|
||||
);
|
||||
final cartonQrBox = DisplayText(
|
||||
// text: _box!.,
|
||||
// text: _box!.,
|
||||
//labelTextKey: "box.number",
|
||||
iconData: AntDesign.qrcode,
|
||||
);
|
||||
final shipmentBox = DisplayText(
|
||||
text: _box!.fcsShipmentNumber,
|
||||
labelTextKey: "box.fcs_shipment_num",
|
||||
// iconData: Ionicons.ios_airplane,
|
||||
// iconData: Ionicons.ios_airplane,
|
||||
);
|
||||
final deliveryBox = DisplayText(
|
||||
text: "Delivery Carton",
|
||||
@@ -199,8 +199,9 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
|
||||
final customerNameBox = DisplayText(
|
||||
text: _box!.userName == null ? "" : _box!.userName,
|
||||
text1: _box!.fcsID == null ? "" : _box!.fcsID,
|
||||
subText: Text(_box!.fcsID ?? "", style: textStyle),
|
||||
labelTextKey: "box.name",
|
||||
|
||||
//iconData: Icons.person,
|
||||
);
|
||||
|
||||
@@ -212,7 +213,8 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
|
||||
final consigneeNameBox = DisplayText(
|
||||
text: _box!.userName != null ? _box!.userName : "",
|
||||
text1: _box!.fcsID != null ? _box!.fcsID : "",
|
||||
subText: Text(_box!.fcsID ?? "", style: textStyle),
|
||||
|
||||
labelTextKey: "processing.consignee.name",
|
||||
//maxLines: 2,
|
||||
//iconData: Ionicons.document_text_outline,
|
||||
@@ -282,7 +284,7 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
SizedBox(child: heightBox, width: 80),
|
||||
],
|
||||
);
|
||||
final packageBox = DisplayText(
|
||||
final packageBox = DisplayText(
|
||||
text: "203FVH",
|
||||
labelTextKey: "box.package",
|
||||
//iconData: AntDesign.CodeSandbox,
|
||||
@@ -362,54 +364,58 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
// Align(
|
||||
// alignment: Alignment(-0.1,0.1),
|
||||
// child: getCartonNumberStatus(context, _box!)),
|
||||
|
||||
|
||||
// ],)
|
||||
// ]),),
|
||||
Padding(padding: EdgeInsets.only(left: 30),
|
||||
child:
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [Expanded(child: cartonTypeBox,
|
||||
flex: 1,
|
||||
),
|
||||
Flexible(
|
||||
child: cartonQrBox,
|
||||
),
|
||||
],)),
|
||||
|
||||
|
||||
Padding(padding: EdgeInsets.only(left: 30),
|
||||
child:
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [Expanded(child: shipmentBox,
|
||||
flex: 1,
|
||||
),
|
||||
Flexible(
|
||||
child: deliveryBox,
|
||||
),
|
||||
],)),
|
||||
Padding(padding: EdgeInsets.only(left: 30),
|
||||
child:
|
||||
Row(
|
||||
children: [
|
||||
Flexible(child: customerNameBox,
|
||||
),
|
||||
|
||||
Flexible(
|
||||
child: consigneeNameBox,
|
||||
),
|
||||
Flexible(child:
|
||||
Column(
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 30),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
Icon(Ionicons.document_text_outline),
|
||||
Text("Bill to",style:TextStyle(color:Colors.blue))
|
||||
]
|
||||
Expanded(
|
||||
child: cartonTypeBox,
|
||||
flex: 1,
|
||||
),
|
||||
Flexible(
|
||||
child: cartonQrBox,
|
||||
),
|
||||
],
|
||||
)),
|
||||
],)),
|
||||
|
||||
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 30),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
Expanded(
|
||||
child: shipmentBox,
|
||||
flex: 1,
|
||||
),
|
||||
Flexible(
|
||||
child: deliveryBox,
|
||||
),
|
||||
],
|
||||
)),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 30),
|
||||
child: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: customerNameBox,
|
||||
),
|
||||
Flexible(
|
||||
child: consigneeNameBox,
|
||||
),
|
||||
Flexible(
|
||||
child: Column(children: [
|
||||
Icon(Ionicons.document_text_outline),
|
||||
Text("Bill to", style: TextStyle(color: Colors.blue))
|
||||
])),
|
||||
],
|
||||
)),
|
||||
|
||||
//LocalTitle(textKey: "box.shipment_info"),
|
||||
// shipmentBox,
|
||||
// shipmentBox,
|
||||
// isSmallBag ? mixCartonNumberBox : Container(),
|
||||
// isMixBox
|
||||
// ? Container()
|
||||
@@ -429,9 +435,7 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
// ],
|
||||
// )
|
||||
// : Container(),
|
||||
Padding(padding: EdgeInsets.only(left: 30),
|
||||
child:
|
||||
packageBox),
|
||||
Padding(padding: EdgeInsets.only(left: 30), child: packageBox),
|
||||
isMixBox ? mixTypeBox : Container(),
|
||||
isMixBox ? LocalTitle(textKey: "box.mix_caton_title") : Container(),
|
||||
isMixBox
|
||||
@@ -442,7 +446,7 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
packages: _box!.packages,
|
||||
)
|
||||
: Container(),
|
||||
// isMixBox ? Container() : LocalTitle(textKey: "box.cargo.type"),
|
||||
// isMixBox ? Container() : LocalTitle(textKey: "box.cargo.type"),
|
||||
isMixBox ? Container() : cargoTableBox,
|
||||
...(isFromPackages || isFromCartons
|
||||
? [
|
||||
|
||||
Reference in New Issue
Block a user