move bill to to cartion size widget
This commit is contained in:
@@ -6,7 +6,6 @@ import 'package:fcs/pages/user_search/user_search.dart';
|
||||
import 'package:fcs/pages/widgets/display_text.dart';
|
||||
import 'package:fcs/pages/widgets/fcs_id_icon.dart';
|
||||
import 'package:fcs/pages/widgets/local_app_bar.dart';
|
||||
import 'package:fcs/pages/widgets/local_radio.dart';
|
||||
import 'package:fcs/pages/widgets/local_radio_buttons.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:fcs/pages/widgets/local_title.dart';
|
||||
@@ -34,7 +33,6 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
|
||||
bool _isLoading = false;
|
||||
bool _isNew = false;
|
||||
String _billToValue = billToSender;
|
||||
String? _selectedCartonType;
|
||||
|
||||
User? _consignee;
|
||||
@@ -157,9 +155,9 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
context,
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => CartonEditorForPackage(
|
||||
sender: _sender!,
|
||||
consignee: _consignee!,
|
||||
billToValue: _billToValue)));
|
||||
sender: _sender!,
|
||||
consignee: _consignee!,
|
||||
)));
|
||||
}
|
||||
// for mix cartion
|
||||
else {
|
||||
@@ -169,10 +167,7 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
builder: (context) => const MixCartonEditor()));
|
||||
}
|
||||
},
|
||||
child: Icon(
|
||||
Icons.add_circle,
|
||||
color: primaryColor,
|
||||
),
|
||||
child: Icon(Icons.add_circle, color: primaryColor),
|
||||
),
|
||||
));
|
||||
|
||||
@@ -268,72 +263,6 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
),
|
||||
);
|
||||
|
||||
final billRadioBox = Container(
|
||||
child: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
_billToValue = billToSender;
|
||||
});
|
||||
},
|
||||
child: Row(children: <Widget>[
|
||||
LocalRadio(
|
||||
value: billToSender,
|
||||
groupValue: _billToValue,
|
||||
onChanged: (p0) {
|
||||
setState(() {
|
||||
_billToValue = billToSender;
|
||||
});
|
||||
},
|
||||
),
|
||||
Flexible(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 10),
|
||||
child: LocalText(context, 'box.bill_to_sender',
|
||||
fontSize: 15,
|
||||
color: _billToValue == billToSender
|
||||
? primaryColor
|
||||
: Colors.black),
|
||||
),
|
||||
)
|
||||
]),
|
||||
)),
|
||||
Flexible(
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
_billToValue = billToConsignee;
|
||||
});
|
||||
},
|
||||
child: Row(children: <Widget>[
|
||||
LocalRadio(
|
||||
value: billToConsignee,
|
||||
groupValue: _billToValue,
|
||||
onChanged: (p0) {
|
||||
setState(() {
|
||||
_billToValue = billToConsignee;
|
||||
});
|
||||
},
|
||||
),
|
||||
Flexible(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 10),
|
||||
child: LocalText(context, 'box.bill_to.consignee',
|
||||
fontSize: 15,
|
||||
color: _billToValue == billToConsignee
|
||||
? primaryColor
|
||||
: Colors.black),
|
||||
),
|
||||
)
|
||||
]),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
@@ -358,9 +287,6 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
Flexible(child: consigneeBox)
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
billRadioBox,
|
||||
const SizedBox(height: 5),
|
||||
],
|
||||
)
|
||||
: Container(),
|
||||
|
||||
Reference in New Issue
Block a user