WIP
This commit is contained in:
parent
ae86425f76
commit
ccba14c02d
|
@ -211,42 +211,6 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
MaterialPageRoute(builder: (context) => ReservationPageWidget()));
|
MaterialPageRoute(builder: (context) => ReservationPageWidget()));
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future reservation(BuildContext context) async {
|
|
||||||
Navigator.push(context,
|
|
||||||
MaterialPageRoute(builder: (context) => ReservationPageWidget()));
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future reservation(BuildContext context) async {
|
|
||||||
Navigator.push(context,
|
|
||||||
MaterialPageRoute(builder: (context) => ReservationPageWidget()));
|
|
||||||
}
|
|
||||||
|
|
||||||
Future consultHistoriesAction(BuildContext context) async {
|
Future consultHistoriesAction(BuildContext context) async {
|
||||||
await showAdaptiveDialog(
|
await showAdaptiveDialog(
|
||||||
// isScrollControlled: true,
|
// isScrollControlled: true,
|
||||||
|
|
|
@ -162,7 +162,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
MenuButtonWidget(
|
MenuButtonWidget(
|
||||||
icon: Icons.inventory_2_outlined,
|
icon: Icons.inventory_2_outlined,
|
||||||
action: () async {
|
action: () async {
|
||||||
await _model.scheduleCompleteVisitAction(context);
|
await _model.packageOrder(context);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
|
@ -173,7 +173,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
MenuButtonWidget(
|
MenuButtonWidget(
|
||||||
icon: Icons.event_available,
|
icon: Icons.event_available,
|
||||||
action: () async {
|
action: () async {
|
||||||
await _model.scheduleCompleteVisitAction(context);
|
await _model.reservation(context);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
|
@ -401,7 +401,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
MenuCardItem(
|
MenuCardItem(
|
||||||
icon: Icons.inventory_2_outlined,
|
icon: Icons.inventory_2_outlined,
|
||||||
action: () async {
|
action: () async {
|
||||||
await _model.scheduleCompleteVisitAction(context);
|
await _model.packageOrder(context);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
|
@ -412,7 +412,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
MenuCardItem(
|
MenuCardItem(
|
||||||
icon: Icons.event_available,
|
icon: Icons.event_available,
|
||||||
action: () async {
|
action: () async {
|
||||||
await _model.scheduleCompleteVisitAction(context);
|
await _model.reservation(context);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import 'dart:io' show Platform;
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||||
import 'package:hub/app_state.dart';
|
import 'package:hub/app_state.dart';
|
||||||
import 'package:hub/app_state.dart';
|
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
|
||||||
import 'package:url_launcher/url_launcher_string.dart';
|
import 'package:url_launcher/url_launcher_string.dart';
|
||||||
import 'package:webview_flutter/webview_flutter.dart';
|
import 'package:webview_flutter/webview_flutter.dart';
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SafeArea(
|
return SafeArea(
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
|
||||||
body: Platform.isIOS
|
body: Platform.isIOS
|
||||||
? InAppWebView(
|
? InAppWebView(
|
||||||
initialUrlRequest: URLRequest(url: WebUri(url)),
|
initialUrlRequest: URLRequest(url: WebUri(url)),
|
||||||
|
@ -102,16 +101,6 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
||||||
)
|
)
|
||||||
..loadRequest(Uri.parse(url)),
|
..loadRequest(Uri.parse(url)),
|
||||||
),
|
),
|
||||||
appBar: AppBar(
|
|
||||||
// Navigator pop
|
|
||||||
leading: IconButton(
|
|
||||||
icon: const Icon(Icons.arrow_back),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue