This commit is contained in:
PhyoThandar
2020-10-14 13:57:27 +06:30
parent 7ec9a5a5fa
commit 1052278029

View File

@@ -540,7 +540,9 @@ class _BoxEditorState extends State<BoxEditor> {
titleKey: "box.cargo_type",
onTap: () async {
Cargo cargo = await Navigator.push<Cargo>(
context, BottomUpPageRoute(CargoTypeEditor()));
context,
CupertinoPageRoute(
builder: (context) => CargoTypeEditor()));
if (cargo != null) {
setState(() {
_box.cargoTypes.add(cargo);
@@ -584,7 +586,8 @@ class _BoxEditorState extends State<BoxEditor> {
onTap: () async {
DeliveryAddress d = await Navigator.push<DeliveryAddress>(
context,
BottomUpPageRoute(DeliveryAddressSelection(
CupertinoPageRoute(
builder: (context) => DeliveryAddressSelection(
deliveryAddress: _deliveryAddress,
)),
);