update pickup

This commit is contained in:
tzw
2021-10-09 17:08:28 +06:30
parent 46da87dc0e
commit 50901992d7
21 changed files with 597 additions and 274 deletions

View File

@@ -33,7 +33,7 @@ class _CustomEditorState extends State<CustomEditor> {
super.initState();
if (widget.custom != null) {
_custom = widget.custom!;
_productController.text = _custom.name??"";
_productController.text = _custom.name ?? "";
_feeController.text = _custom.customDutyFee.toStringAsFixed(2);
_shipmentRateController.text =
_custom.rate == null ? "" : _custom.rate.toStringAsFixed(2);
@@ -85,10 +85,12 @@ class _CustomEditorState extends State<CustomEditor> {
title:
Text(AppTranslations.of(context)!.text("rate.custom.form.title")),
actions: [
IconButton(
icon: Icon(Icons.delete),
onPressed: _delete,
)
_isNew
? Container()
: IconButton(
icon: Icon(Icons.delete),
onPressed: _delete,
)
],
),
body: Container(