update cartion editor for package
This commit is contained in:
@@ -33,7 +33,7 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
|
||||
bool _isLoading = false;
|
||||
bool _isNew = false;
|
||||
int _billToValue = 1;
|
||||
String _billToValue = billToSender;
|
||||
String? _selectedCartonType;
|
||||
|
||||
User? _consignee;
|
||||
@@ -159,7 +159,7 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
context,
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => CartonEditorForPackage(
|
||||
sender: _sender!, consignee: _consignee!)));
|
||||
sender: _sender!, consignee: _consignee!,billToValue: _billToValue)));
|
||||
}
|
||||
// for mix cartion
|
||||
else {
|
||||
@@ -275,16 +275,16 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
_billToValue = 1;
|
||||
_billToValue = billToSender;
|
||||
});
|
||||
},
|
||||
child: Row(children: <Widget>[
|
||||
LocalRadio(
|
||||
value: 1,
|
||||
value: billToSender,
|
||||
groupValue: _billToValue,
|
||||
onChanged: (p0) {
|
||||
setState(() {
|
||||
_billToValue = 1;
|
||||
_billToValue = billToSender;
|
||||
});
|
||||
},
|
||||
),
|
||||
@@ -293,7 +293,7 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
padding: const EdgeInsets.only(left: 10),
|
||||
child: LocalText(context, 'box.bill_to_sender',
|
||||
fontSize: 15,
|
||||
color: _billToValue == 1 ? primaryColor : Colors.black),
|
||||
color: _billToValue == billToSender ? primaryColor : Colors.black),
|
||||
),
|
||||
)
|
||||
]),
|
||||
@@ -302,16 +302,16 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
_billToValue = 2;
|
||||
_billToValue = billToConsignee;
|
||||
});
|
||||
},
|
||||
child: Row(children: <Widget>[
|
||||
LocalRadio(
|
||||
value: 2,
|
||||
value: billToConsignee,
|
||||
groupValue: _billToValue,
|
||||
onChanged: (p0) {
|
||||
setState(() {
|
||||
_billToValue = 2;
|
||||
_billToValue = billToConsignee;
|
||||
});
|
||||
},
|
||||
),
|
||||
@@ -320,7 +320,7 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
padding: const EdgeInsets.only(left: 10),
|
||||
child: LocalText(context, 'box.bill_to.consignee',
|
||||
fontSize: 15,
|
||||
color: _billToValue == 2 ? primaryColor : Colors.black),
|
||||
color: _billToValue == billToConsignee ? primaryColor : Colors.black),
|
||||
),
|
||||
)
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user