fix: bloqueios na encomendas e reservas
This commit is contained in:
parent
c65d103d96
commit
bd0c8bebc5
|
@ -211,21 +211,31 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
|||
}
|
||||
|
||||
Future packageOrder(BuildContext context) async {
|
||||
context.pushNamed(
|
||||
'packageOrder',
|
||||
extra: <String, dynamic>{
|
||||
kTransitionInfoKey: const TransitionInfo(
|
||||
hasTransition: true,
|
||||
transitionType: PageTransitionType.scale,
|
||||
alignment: Alignment.bottomCenter,
|
||||
),
|
||||
},
|
||||
).then((value) => true);
|
||||
final isWpp = AppState().whatsapp;
|
||||
|
||||
if (isWpp) {
|
||||
context.pushNamed(
|
||||
'packageOrder',
|
||||
extra: <String, dynamic>{
|
||||
kTransitionInfoKey: const TransitionInfo(
|
||||
hasTransition: true,
|
||||
transitionType: PageTransitionType.scale,
|
||||
alignment: Alignment.bottomCenter,
|
||||
),
|
||||
},
|
||||
).then((value) => true);
|
||||
} else {
|
||||
DialogUnavailable.unavailableFeature(context);
|
||||
}
|
||||
}
|
||||
|
||||
Future reservation(BuildContext context) async {
|
||||
Navigator.push(context,
|
||||
MaterialPageRoute(builder: (context) => ReservationPageWidget()));
|
||||
final isWpp = AppState().whatsapp;
|
||||
if (isWpp) {
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => ReservationPageWidget()));
|
||||
} else {
|
||||
DialogUnavailable.unavailableFeature(context);
|
||||
}
|
||||
}
|
||||
|
||||
Future consultHistoriesAction(BuildContext context) async {
|
||||
|
|
Loading…
Reference in New Issue