fix carton
This commit is contained in:
@@ -2,7 +2,6 @@ import 'package:fcs/domain/entities/package.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/main/util.dart';
|
||||
import 'package:fcs/pages/package/model/package_model.dart';
|
||||
import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
|
||||
import 'package:fcs/pages/widgets/display_text.dart';
|
||||
import 'package:fcs/pages/widgets/fcs_id_icon.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
@@ -71,7 +70,22 @@ class _ProcessingInfoState extends State<ProcessingInfo> {
|
||||
);
|
||||
final customerNameBox = DisplayText(
|
||||
text: _package.userName,
|
||||
labelTextKey: "processing.name",
|
||||
labelTextKey: "processing.consignee.name",
|
||||
iconData: Icons.perm_identity,
|
||||
);
|
||||
var senderFcsIDBox = DisplayText(
|
||||
text: _package.senderFCSID,
|
||||
labelTextKey: "processing.fcs.id",
|
||||
icon: FcsIDIcon(),
|
||||
);
|
||||
final senderPhoneNumberBox = DisplayText(
|
||||
text: _package.senderPhoneNumber,
|
||||
labelTextKey: "processing.phone",
|
||||
iconData: Icons.phone,
|
||||
);
|
||||
final senderNameBox = DisplayText(
|
||||
text: _package.senderName,
|
||||
labelTextKey: "processing.shipper.name",
|
||||
iconData: Icons.perm_identity,
|
||||
);
|
||||
final marketBox = DisplayText(
|
||||
@@ -95,6 +109,24 @@ class _ProcessingInfoState extends State<ProcessingInfo> {
|
||||
title: "Receipt File",
|
||||
);
|
||||
|
||||
final consigneeBox = Container(
|
||||
child: Column(
|
||||
children: [
|
||||
fcsIDBox,
|
||||
phoneNumberBox,
|
||||
customerNameBox,
|
||||
],
|
||||
),
|
||||
);
|
||||
final shipperBox = Container(
|
||||
child: Column(
|
||||
children: [
|
||||
senderFcsIDBox,
|
||||
senderPhoneNumberBox,
|
||||
senderNameBox,
|
||||
],
|
||||
),
|
||||
);
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
@@ -131,9 +163,12 @@ class _ProcessingInfoState extends State<ProcessingInfo> {
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: ListView(children: <Widget>[
|
||||
trackingIdBox,
|
||||
fcsIDBox,
|
||||
customerNameBox,
|
||||
phoneNumberBox,
|
||||
Row(
|
||||
children: [
|
||||
Flexible(child: consigneeBox),
|
||||
Flexible(child: shipperBox)
|
||||
],
|
||||
),
|
||||
marketBox,
|
||||
descBox,
|
||||
remarkBox,
|
||||
|
||||
Reference in New Issue
Block a user