update invoice

This commit is contained in:
PhyoThandar
2020-10-16 21:38:39 +06:30
parent ad7d0039fc
commit 274c999959
18 changed files with 658 additions and 398 deletions

View File

@@ -15,17 +15,22 @@ import 'custom_row.dart';
import 'model/shipment_rate_model.dart';
class CustomList extends StatefulWidget {
const CustomList({Key key}) : super(key: key);
final bool selected;
const CustomList({Key key, this.selected}) : super(key: key);
@override
_CustomListState createState() => _CustomListState();
}
class _CustomListState extends State<CustomList> {
bool _isLoading = false;
bool _selected = false;
@override
void initState() {
super.initState();
if (widget.selected != null) {
_selected = widget.selected;
}
}
@override
@@ -75,8 +80,11 @@ class _CustomListState extends State<CustomList> {
shipmentRateModel.rate.customDuties[index];
return InkWell(
onTap: () {
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => CustomEditor(custom: custom)));
_selected
? Navigator.pop(context, custom)
: Navigator.of(context).push(CupertinoPageRoute(
builder: (context) =>
CustomEditor(custom: custom)));
},
child: Container(
child: _row(