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