preparing carton info
This commit is contained in:
@@ -106,7 +106,7 @@ class _CargoTableState extends State<CargoTable> {
|
||||
padding: const EdgeInsets.only(right: 48.0),
|
||||
child: Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: Text(total.toStringAsFixed(2),
|
||||
child: Text(total.toStringAsFixed(2)+" lb",
|
||||
style: TextStyle(fontWeight: FontWeight.bold))),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -175,11 +175,11 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
labelTextKey: "box.number",
|
||||
//iconData: Ionicons.ios_airplane,
|
||||
);
|
||||
final cartonQrBox = DisplayText(
|
||||
// text: _box!.,
|
||||
//labelTextKey: "box.number",
|
||||
iconData: AntDesign.qrcode,
|
||||
);
|
||||
// final cartonQrBox = DisplayText(
|
||||
// // text: _box!.,
|
||||
// //labelTextKey: "box.number",
|
||||
// iconData: AntDesign.qrcode,
|
||||
// );
|
||||
final shipmentBox = DisplayText(
|
||||
text: _box!.fcsShipmentNumber,
|
||||
labelTextKey: "box.fcs_shipment_num",
|
||||
@@ -215,14 +215,17 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
text1: _box!.fcsID != null ? _box!.fcsID : "",
|
||||
labelTextKey: "processing.consignee.name",
|
||||
//maxLines: 2,
|
||||
//iconData: Ionicons.document_text_outline,
|
||||
// iconData: Ionicons.document_text_outline,
|
||||
);
|
||||
|
||||
final consigneeBox = Container(
|
||||
child: Column(
|
||||
children: [
|
||||
consigneefcsIDBox,
|
||||
children: [
|
||||
consigneeNameBox,
|
||||
IconButton(icon:Icon(Ionicons.document_text_outline),
|
||||
onPressed:() {},),
|
||||
Text("Bill to",style:TextStyle(color:Color.fromARGB(255, 57, 80, 233)))
|
||||
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -285,6 +288,7 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
final packageBox = DisplayText(
|
||||
text: "203FVH",
|
||||
labelTextKey: "box.package",
|
||||
maxLines:20,
|
||||
//iconData: AntDesign.CodeSandbox,
|
||||
);
|
||||
|
||||
@@ -368,12 +372,19 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
Padding(padding: EdgeInsets.only(left: 30),
|
||||
child:
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [Expanded(child: cartonTypeBox,
|
||||
flex: 1,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [Flexible(child: cartonTypeBox,
|
||||
//flex: 1,
|
||||
),
|
||||
Flexible(
|
||||
child: cartonQrBox,
|
||||
Expanded(
|
||||
child: IconButton(
|
||||
alignment: Alignment.centerLeft,
|
||||
iconSize: 30,
|
||||
icon: const Icon( AntDesign.qrcode),
|
||||
onPressed: () {
|
||||
// ...
|
||||
},
|
||||
),
|
||||
),
|
||||
],)),
|
||||
|
||||
@@ -381,9 +392,9 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
Padding(padding: EdgeInsets.only(left: 30),
|
||||
child:
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [Expanded(child: shipmentBox,
|
||||
flex: 1,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [Flexible(child: shipmentBox,
|
||||
//flex: 1,
|
||||
),
|
||||
Flexible(
|
||||
child: deliveryBox,
|
||||
@@ -396,14 +407,22 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
Flexible(child: customerNameBox,
|
||||
),
|
||||
|
||||
Flexible(
|
||||
child: consigneeNameBox,
|
||||
),
|
||||
Flexible(child:
|
||||
// Flexible(
|
||||
// child: consigneeNameBox,
|
||||
// ),
|
||||
new Flexible(child:
|
||||
Column(
|
||||
children: [
|
||||
Icon(Ionicons.document_text_outline),
|
||||
Text("Bill to",style:TextStyle(color:Colors.blue))
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children:<Widget> [
|
||||
consigneeNameBox,
|
||||
new Padding(
|
||||
padding: const EdgeInsets.fromLTRB(0, 30.0, 0.0, 0.0),
|
||||
child:
|
||||
IconButton(icon:Icon(Ionicons.document_text_outline),
|
||||
onPressed:() {},)
|
||||
),
|
||||
// Text("Bill to",style:TextStyle(color:Color.fromARGB(255, 57, 80, 233)))
|
||||
|
||||
]
|
||||
)),
|
||||
],)),
|
||||
@@ -432,16 +451,16 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
Padding(padding: EdgeInsets.only(left: 30),
|
||||
child:
|
||||
packageBox),
|
||||
isMixBox ? mixTypeBox : Container(),
|
||||
isMixBox ? LocalTitle(textKey: "box.mix_caton_title") : Container(),
|
||||
isMixBox
|
||||
? Column(children: _getCartons(context, _box!.mixCartons))
|
||||
: Container(),
|
||||
isFromPackages || isSmallBag
|
||||
? CartonPackageTable(
|
||||
packages: _box!.packages,
|
||||
)
|
||||
: Container(),
|
||||
// isMixBox ? mixTypeBox : Container(),
|
||||
// isMixBox ? LocalTitle(textKey: "box.mix_caton_title") : Container(),
|
||||
// isMixBox
|
||||
// ? Column(children: _getCartons(context, _box!.mixCartons))
|
||||
// : Container(),
|
||||
// isFromPackages || isSmallBag
|
||||
// ? CartonPackageTable(
|
||||
// packages: _box!.packages,
|
||||
// )
|
||||
// : Container(),
|
||||
// isMixBox ? Container() : LocalTitle(textKey: "box.cargo.type"),
|
||||
isMixBox ? Container() : cargoTableBox,
|
||||
...(isFromPackages || isFromCartons
|
||||
|
||||
Reference in New Issue
Block a user