update invoice
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user