Merge branch 'main' into fix/fd-826
This commit is contained in:
commit
d6a36036ad
|
@ -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/secure_storage_helper.dart';
|
||||
import 'package:hub/shared/helpers/sqlite_storage_helper.dart';
|
||||
|
@ -31,7 +32,8 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
|||
final cliUUID = StorageUtil().cliUUID;
|
||||
const createdAt = '0000-00-00 00:00:00';
|
||||
final url = 'https://hub.freaccess.com.br/hub/fast-pass/$cliUUID';
|
||||
final freUserData = "{\"name\": \"$name\", \"email\": \"$email\",\"dev_id\": \"$devUUID\",\"created_at\":\"$createdAt\",\"updated_at\": \"0000-00-00 00:00:00\",\"status\": \"A\" }";
|
||||
final freUserData =
|
||||
"{\"name\": \"$name\", \"email\": \"$email\",\"dev_id\": \"$devUUID\",\"created_at\":\"$createdAt\",\"updated_at\": \"0000-00-00 00:00:00\",\"status\": \"A\" }";
|
||||
|
||||
return {
|
||||
'url': url,
|
||||
|
@ -53,9 +55,13 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
|||
future: initVariables(),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
} else if (snapshot.hasError) {
|
||||
return Center(child: Text('Error: ${snapshot.error}'));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} 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']!;
|
||||
|
|
|
@ -35,7 +35,8 @@ class _ReservationPageWidgetState extends State<ReservationPageWidget> {
|
|||
|
||||
final url = 'https://hub.freaccess.com.br/hub/reservation/$clientId';
|
||||
|
||||
final freUserData = "{\"name\": \"$name\", \"email\": \"$email\",\"dev_id\": \"$devUUID\",\"created_at\": \"0000-00-00 00:00:00\",\"updated_at\": \"0000-00-00 00:00:00\",\"status\": \"A\" }";
|
||||
final freUserData =
|
||||
"{\"name\": \"$name\", \"email\": \"$email\",\"dev_id\": \"$devUUID\",\"created_at\": \"0000-00-00 00:00:00\",\"updated_at\": \"0000-00-00 00:00:00\",\"status\": \"A\" }";
|
||||
|
||||
return {
|
||||
'url': url,
|
||||
|
@ -57,7 +58,7 @@ class _ReservationPageWidgetState extends State<ReservationPageWidget> {
|
|||
future: initVariables(),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else if (snapshot.hasError ||
|
||||
snapshot.hasData == false ||
|
||||
snapshot.data!.isEmpty) {
|
||||
|
|
Loading…
Reference in New Issue