Merge branch 'develop' into fix/fd-827
This commit is contained in:
commit
2c54ff44a6
|
@ -1,19 +1,14 @@
|
|||
import UIKit
|
||||
import Flutter
|
||||
import flutter_secure_storage
|
||||
|
||||
@main
|
||||
import Flutter
|
||||
|
||||
@UIApplicationMain
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
|
||||
// Configurar o Keychain para remover dados quando o app for desinstalado
|
||||
let secureStorage = FlutterSecureStoragePlugin()
|
||||
secureStorage.setAccessibility(.whenPasscodeSetThisDeviceOnly)
|
||||
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||
import 'package:hub/app_state.dart';
|
||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||
import 'package:hub/shared/helpers/db_helper.dart';
|
||||
import 'package:hub/shared/utils/webview_util.dart';
|
||||
|
@ -66,8 +67,12 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
|||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else if (snapshot.hasError) {
|
||||
return Center(child: Text('Error: ${snapshot.error}'));
|
||||
} else if (snapshot.hasError ||
|
||||
snapshot.hasData == false ||
|
||||
snapshot.data!.isEmpty) {
|
||||
return Center(
|
||||
child: Text(FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Unexpected error', ptText: 'Erro inesperado')));
|
||||
} else if (snapshot.hasData) {
|
||||
final data = snapshot.data!;
|
||||
final url = data['url']!;
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||
import 'package:hub/app_state.dart';
|
||||
import 'package:hub/flutter_flow/internationalization.dart';
|
||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||
import 'package:hub/shared/helpers/db_helper.dart';
|
||||
import 'package:hub/shared/utils/webview_util.dart';
|
||||
|
@ -71,8 +72,12 @@ class _ReservationPageWidgetState extends State<ReservationPageWidget> {
|
|||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else if (snapshot.hasError) {
|
||||
return Center(child: Text('Error: ${snapshot.error}'));
|
||||
} else if (snapshot.hasError ||
|
||||
snapshot.hasData == false ||
|
||||
snapshot.data!.isEmpty) {
|
||||
return Center(
|
||||
child: Text(FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Unexpected error', ptText: 'Erro inesperado')));
|
||||
} else if (snapshot.hasData) {
|
||||
final data = snapshot.data!;
|
||||
final url = data['url']!;
|
||||
|
|
Loading…
Reference in New Issue