Merge pull request #34 from FRE-Informatica/fix/nav
This commit is contained in:
commit
1d90a6e3b8
|
@ -9,7 +9,6 @@ import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/flutter_flow/random_data_util.dart';
|
import 'package:hub/flutter_flow/random_data_util.dart';
|
||||||
import 'package:hub/index.dart';
|
|
||||||
import 'package:hub/shared/utils/dialog_util.dart';
|
import 'package:hub/shared/utils/dialog_util.dart';
|
||||||
import 'package:qr_flutter/qr_flutter.dart';
|
import 'package:qr_flutter/qr_flutter.dart';
|
||||||
import 'package:share_plus/share_plus.dart';
|
import 'package:share_plus/share_plus.dart';
|
||||||
|
@ -35,48 +34,17 @@ Future repeatVisitScheduleAction(
|
||||||
bool? visitTempBol,
|
bool? visitTempBol,
|
||||||
String? visitObsStr,
|
String? visitObsStr,
|
||||||
}) async {
|
}) async {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'scheduleCompleteVisitPage',
|
'/scheduleCompleteVisitPage',
|
||||||
queryParameters: {
|
|
||||||
'visitStartDateStr': serializeParam(
|
|
||||||
visitStartDateStr,
|
|
||||||
ParamType.String,
|
|
||||||
),
|
|
||||||
'visitEndDateStr': serializeParam(
|
|
||||||
visitEndDateStr,
|
|
||||||
ParamType.String,
|
|
||||||
),
|
|
||||||
'visitReasonStr': serializeParam(
|
|
||||||
visitReasonStr,
|
|
||||||
ParamType.String,
|
|
||||||
),
|
|
||||||
'visitLevelStr': serializeParam(
|
|
||||||
visitLevelStr,
|
|
||||||
ParamType.String,
|
|
||||||
),
|
|
||||||
'visitTempBol': serializeParam(
|
|
||||||
visitTempBol,
|
|
||||||
ParamType.bool,
|
|
||||||
),
|
|
||||||
'visitObsStr': serializeParam(
|
|
||||||
visitObsStr,
|
|
||||||
ParamType.String,
|
|
||||||
),
|
|
||||||
'visitorStrList': serializeParam(
|
|
||||||
visitorStrList,
|
|
||||||
ParamType.String,
|
|
||||||
),
|
|
||||||
'visitorJsonList': serializeParam(
|
|
||||||
visitorJsonList,
|
|
||||||
ParamType.JSON,
|
|
||||||
isList: true,
|
|
||||||
),
|
|
||||||
}.withoutNulls,
|
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
'visitStartDateStr': visitStartDateStr,
|
||||||
hasTransition: true,
|
'visitEndDateStr': visitEndDateStr,
|
||||||
transitionType: PageTransitionType.fade,
|
'visitReasonStr': visitReasonStr,
|
||||||
),
|
'visitLevelStr': visitLevelStr,
|
||||||
|
'visitTempBol': visitTempBol,
|
||||||
|
'visitObsStr': visitObsStr,
|
||||||
|
'visitorStrList': visitorStrList,
|
||||||
|
'visitorJsonList': visitorJsonList,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -153,7 +121,8 @@ Future singInLoginAction(
|
||||||
AppState().serialNumber = await getSerialNumber() ?? '';
|
AppState().serialNumber = await getSerialNumber() ?? '';
|
||||||
AppState().isLogged = true;
|
AppState().isLogged = true;
|
||||||
|
|
||||||
AppState().haveLocal = await checkLocals(context: context, model: model);
|
AppState().haveLocal =
|
||||||
|
await checkLocals(context: context, model: model);
|
||||||
toggleApp(context, AppState().haveLocal!);
|
toggleApp(context, AppState().haveLocal!);
|
||||||
} else {
|
} else {
|
||||||
if (PhpGroup.loginCall.msg((loginCall?.jsonBody ?? '')) == null) {
|
if (PhpGroup.loginCall.msg((loginCall?.jsonBody ?? '')) == null) {
|
||||||
|
@ -261,8 +230,8 @@ Future forgotPasswdAction(
|
||||||
}
|
}
|
||||||
|
|
||||||
Future toggleSignInPage(BuildContext context) async {
|
Future toggleSignInPage(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'signInPage',
|
'/signInPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -273,8 +242,8 @@ Future toggleSignInPage(BuildContext context) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future toggleSignUpPage(BuildContext context) async {
|
Future toggleSignUpPage(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'signUpPage',
|
'/signUpPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -286,10 +255,10 @@ Future toggleSignUpPage(BuildContext context) async {
|
||||||
|
|
||||||
Future toggleApp(BuildContext context, bool haveLocal) async {
|
Future toggleApp(BuildContext context, bool haveLocal) async {
|
||||||
if (haveLocal == true) {
|
if (haveLocal == true) {
|
||||||
Navigator.push(context, MaterialPageRoute(builder: (context) => const HomePageWidget()));
|
context.go('/homePage');
|
||||||
} else if (haveLocal == false) {
|
} else if (haveLocal == false) {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'receptionPage',
|
'/receptionPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -421,7 +390,8 @@ Future changeStatusAction(
|
||||||
String accessKey,
|
String accessKey,
|
||||||
String email,
|
String email,
|
||||||
) async {
|
) async {
|
||||||
Navigator.pop(context, true);
|
// Navigator.pop(context, true);
|
||||||
|
context.pop(true);
|
||||||
|
|
||||||
bool? blockVisitRequest;
|
bool? blockVisitRequest;
|
||||||
blockVisitRequest = await visitCancelAction(
|
blockVisitRequest = await visitCancelAction(
|
||||||
|
@ -628,8 +598,8 @@ Future scheduleVisitOptAction(BuildContext context) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future registerVisitorOptAction(BuildContext context) async {
|
Future registerVisitorOptAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'registerVisitorPage',
|
'/registerVisitorPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -641,8 +611,8 @@ Future registerVisitorOptAction(BuildContext context) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future peopleOnThePropertyAction(BuildContext context) async {
|
Future peopleOnThePropertyAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'peopleOnThePropertyPage',
|
'/peopleOnThePropertyPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -653,8 +623,8 @@ Future peopleOnThePropertyAction(BuildContext context) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future preferencesSettings(BuildContext context) async {
|
Future preferencesSettings(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'preferencesSettings',
|
'/preferencesSettings',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -712,8 +682,8 @@ Future liberationHistoryOptAction(BuildContext context) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future accessQRCodeOptAction(BuildContext context) async {
|
Future accessQRCodeOptAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'qrCodePage',
|
'/qrCodePage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
|
|
@ -10,6 +10,7 @@ import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/shared/utils/dialog_util.dart';
|
import 'package:hub/shared/utils/dialog_util.dart';
|
||||||
|
|
||||||
class NotificationService {
|
class NotificationService {
|
||||||
|
@ -18,17 +19,17 @@ class NotificationService {
|
||||||
'resource://drawable/notification_icon',
|
'resource://drawable/notification_icon',
|
||||||
[
|
[
|
||||||
NotificationChannel(
|
NotificationChannel(
|
||||||
channelKey: 'basic_channel',
|
channelKey: 'basic_channel',
|
||||||
channelGroupKey: 'basic_channel',
|
channelGroupKey: 'basic_channel',
|
||||||
channelName: 'Notificações do App',
|
channelName: 'Notificações do App',
|
||||||
channelDescription: 'Canal de notificação do Aplicativo',
|
channelDescription: 'Canal de notificação do Aplicativo',
|
||||||
importance: NotificationImportance.Max,
|
importance: NotificationImportance.Max,
|
||||||
channelShowBadge: false,
|
channelShowBadge: false,
|
||||||
playSound: true,
|
playSound: true,
|
||||||
criticalAlerts: true,
|
criticalAlerts: true,
|
||||||
onlyAlertOnce: true,
|
onlyAlertOnce: true,
|
||||||
defaultColor: Colors.green,
|
defaultColor: Colors.green,
|
||||||
ledColor: Colors.white,
|
ledColor: Colors.white,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
channelGroups: [
|
channelGroups: [
|
||||||
|
@ -106,7 +107,7 @@ class NotificationService {
|
||||||
ptText: 'Não',
|
ptText: 'Não',
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
width: 100,
|
width: 100,
|
||||||
|
@ -143,16 +144,16 @@ class NotificationService {
|
||||||
)
|
)
|
||||||
.then((value) {
|
.then((value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
} else {
|
} else {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
DialogUtil.errorDefault(context);
|
DialogUtil.errorDefault(context);
|
||||||
}
|
}
|
||||||
}).catchError((e) {
|
}).catchError((e) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
DialogUtil.errorDefault(context);
|
DialogUtil.errorDefault(context);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -203,16 +204,16 @@ class NotificationService {
|
||||||
)
|
)
|
||||||
.then((value) {
|
.then((value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
} else {
|
} else {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
DialogUtil.errorDefault(context);
|
DialogUtil.errorDefault(context);
|
||||||
}
|
}
|
||||||
}).catchError((e) {
|
}).catchError((e) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
DialogUtil.errorDefault(context);
|
DialogUtil.errorDefault(context);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,6 +3,7 @@ import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/components/molecular_components/message_opt_modal/opt_modal_model.dart';
|
import 'package:hub/components/molecular_components/message_opt_modal/opt_modal_model.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
class OptModalWidget extends StatefulWidget {
|
class OptModalWidget extends StatefulWidget {
|
||||||
final String defaultPersonType;
|
final String defaultPersonType;
|
||||||
|
@ -78,7 +79,8 @@ class _OptModalWidgetState extends State<OptModalWidget> {
|
||||||
filterResult['accessType'] = selected['accessType']!.first;
|
filterResult['accessType'] = selected['accessType']!.first;
|
||||||
}
|
}
|
||||||
|
|
||||||
Navigator.pop(context, filterResult);
|
// Navigator.pop(context, filterResult);
|
||||||
|
context.pop(filterResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildCheckboxListTile(
|
Widget _buildCheckboxListTile(
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/components/molecular_components/message_opt_modal/opt_modal_model.dart';
|
import 'package:hub/components/molecular_components/message_opt_modal/opt_modal_model.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_model.dart';
|
import 'package:hub/flutter_flow/flutter_flow_model.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/internationalization.dart';
|
import 'package:hub/flutter_flow/internationalization.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
class OptModalWidget extends StatefulWidget {
|
class OptModalWidget extends StatefulWidget {
|
||||||
final String defaultPersonType;
|
final String defaultPersonType;
|
||||||
|
@ -84,7 +84,8 @@ class _OptModalWidgetState extends State<OptModalWidget> {
|
||||||
filterResult['accessType'] = selected['accessType']!.first;
|
filterResult['accessType'] = selected['accessType']!.first;
|
||||||
}
|
}
|
||||||
|
|
||||||
Navigator.pop(context, filterResult);
|
// Navigator.pop(context, filterResult);
|
||||||
|
context.pop(filterResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildCheckboxListTile(String key, List<Map<String, String>> options) {
|
Widget _buildCheckboxListTile(String key, List<Map<String, String>> options) {
|
||||||
|
@ -329,4 +330,4 @@ class _OptModalWidgetState extends State<OptModalWidget> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,6 @@ import 'package:hub/flutter_flow/flutter_flow_animations.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class OptionSelectionModalWidget extends StatefulWidget {
|
class OptionSelectionModalWidget extends StatefulWidget {
|
||||||
const OptionSelectionModalWidget({
|
const OptionSelectionModalWidget({
|
||||||
super.key,
|
super.key,
|
||||||
|
@ -73,7 +71,7 @@ class _OptionSelectionModalWidgetState extends State<OptionSelectionModalWidget>
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
@ -93,19 +91,23 @@ class _OptionSelectionModalWidgetState extends State<OptionSelectionModalWidget>
|
||||||
itemBuilder: (context, optionsListIndex) {
|
itemBuilder: (context, optionsListIndex) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
if (widget.routesListStr![optionsListIndex] == 'scheduleCompleteVisitPage') {
|
if (widget.routesListStr![optionsListIndex] ==
|
||||||
|
'scheduleCompleteVisitPage') {
|
||||||
// Navegação para a página ScheduleCompleteVisitPage com queryParameters
|
// Navegação para a página ScheduleCompleteVisitPage com queryParameters
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'scheduleCompleteVisitPage',
|
'/scheduleCompleteVisitPage',
|
||||||
queryParameters: {
|
extra: {
|
||||||
'visitStartDateStr': DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now()),
|
'visitStartDateStr': DateFormat('yyyy-MM-dd HH:mm:ss')
|
||||||
'visitEndDateStr': DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now().add(const Duration(days: 1))),
|
.format(DateTime.now()),
|
||||||
|
'visitEndDateStr': DateFormat('yyyy-MM-dd HH:mm:ss')
|
||||||
|
.format(
|
||||||
|
DateTime.now().add(const Duration(days: 1))),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// Navegação para outras páginas
|
// Navegação para outras páginas
|
||||||
context.pushNamed(widget.routesListStr![optionsListIndex]);
|
context.go(widget.routesListStr![optionsListIndex]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -217,4 +219,4 @@ class _OptionSelectionModalWidgetState extends State<OptionSelectionModalWidget>
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/components/molecular_components/order_filter_modal/order_filter_modal_model.dart';
|
import 'package:hub/components/molecular_components/order_filter_modal/order_filter_modal_model.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
class OrderFilterModalWidget extends StatefulWidget {
|
class OrderFilterModalWidget extends StatefulWidget {
|
||||||
final String defaultAdresseeType;
|
final String defaultAdresseeType;
|
||||||
|
@ -91,7 +92,8 @@ class _OrderFilterModalWidgetState extends State<OrderFilterModalWidget> {
|
||||||
filterResult['status'] = selected['status']!.first;
|
filterResult['status'] = selected['status']!.first;
|
||||||
}
|
}
|
||||||
|
|
||||||
Navigator.pop(context, filterResult);
|
// Navigator.pop(context, filterResult);
|
||||||
|
context.pop(filterResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildCheckboxListTile(
|
Widget _buildCheckboxListTile(
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_animate/flutter_animate.dart';
|
||||||
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/shared/enums/enum_throw_exception.dart';
|
import 'package:hub/shared/enums/enum_throw_exception.dart';
|
||||||
|
|
||||||
import '/flutter_flow/flutter_flow_animations.dart';
|
import '/flutter_flow/flutter_flow_animations.dart';
|
||||||
import '/flutter_flow/flutter_flow_theme.dart';
|
import '/flutter_flow/flutter_flow_theme.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_animate/flutter_animate.dart';
|
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
|
||||||
import 'throw_exception_model.dart';
|
import 'throw_exception_model.dart';
|
||||||
|
|
||||||
export 'throw_exception_model.dart';
|
export 'throw_exception_model.dart';
|
||||||
|
|
||||||
class ThrowExceptionWidget extends StatefulWidget {
|
class ThrowExceptionWidget extends StatefulWidget {
|
||||||
|
@ -110,7 +112,7 @@ class _ThrowExceptionWidgetState extends State<ThrowExceptionWidget>
|
||||||
hoverColor: Colors.transparent,
|
hoverColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
import 'dart:developer';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/components/molecular_components/visitor_not_found_component/visitor_not_found_component_model.dart';
|
import 'package:hub/components/molecular_components/visitor_not_found_component/visitor_not_found_component_model.dart';
|
||||||
import 'package:hub/components/templates_components/regisiter_vistor_template_component/regisiter_vistor_template_component_widget.dart';
|
import 'package:hub/components/templates_components/regisiter_vistor_template_component/regisiter_vistor_template_component_widget.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
class VisitorNotFoundComponentWidget extends StatefulWidget {
|
class VisitorNotFoundComponentWidget extends StatefulWidget {
|
||||||
const VisitorNotFoundComponentWidget({this.doc, Key? key}) : super(key: key);
|
const VisitorNotFoundComponentWidget({this.doc, Key? key}) : super(key: key);
|
||||||
|
@ -75,7 +73,7 @@ class _VisitorNotFoundComponentWidgetState
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -146,7 +144,8 @@ class _VisitorNotFoundComponentWidgetState
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
).then((value) => Navigator.pop(context, value));
|
).then((value) => context.pop(value));
|
||||||
|
// Navigator.pop(context, value)
|
||||||
},
|
},
|
||||||
text: FFLocalizations.of(context)
|
text: FFLocalizations.of(context)
|
||||||
.getVariableText(enText: 'Add', ptText: 'Adicionar'),
|
.getVariableText(enText: 'Add', ptText: 'Adicionar'),
|
||||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:hub/components/organism_components/bottom_arrow_linked_locals_component/bottom_arrow_linked_locals_component_model.dart';
|
import 'package:hub/components/organism_components/bottom_arrow_linked_locals_component/bottom_arrow_linked_locals_component_model.dart';
|
||||||
import 'package:hub/components/templates_components/card_item_template_component/card_item_template_component_widget.dart';
|
import 'package:hub/components/templates_components/card_item_template_component/card_item_template_component_widget.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/shared/utils/dialog_util.dart';
|
import 'package:hub/shared/utils/dialog_util.dart';
|
||||||
import 'package:hub/shared/utils/log_util.dart';
|
import 'package:hub/shared/utils/log_util.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
@ -167,7 +168,7 @@ class _BottomArrowLinkedLocalsComponentWidgetState
|
||||||
AppState().cliUUID = local['CLI_ID'];
|
AppState().cliUUID = local['CLI_ID'];
|
||||||
AppState().local = local['CLI_NOME'];
|
AppState().local = local['CLI_NOME'];
|
||||||
AppState().ownerUUID = local['CLU_OWNER_ID'];
|
AppState().ownerUUID = local['CLU_OWNER_ID'];
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
} else if (local['CLU_STATUS'] == 'B') {
|
} else if (local['CLU_STATUS'] == 'B') {
|
||||||
String message = FFLocalizations.of(context).getVariableText(
|
String message = FFLocalizations.of(context).getVariableText(
|
||||||
ptText:
|
ptText:
|
||||||
|
@ -193,7 +194,7 @@ class _BottomArrowLinkedLocalsComponentWidgetState
|
||||||
enText: 'Do you wish to accept the link to $localName?'),
|
enText: 'Do you wish to accept the link to $localName?'),
|
||||||
() async {
|
() async {
|
||||||
var response = await _fetchResponseLink('A', local['CLI_ID']);
|
var response = await _fetchResponseLink('A', local['CLI_ID']);
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
|
|
||||||
if (response['error'] == true) {
|
if (response['error'] == true) {
|
||||||
DialogUtil.error(context, response['error_msg']);
|
DialogUtil.error(context, response['error_msg']);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hub/components/organism_components/menu_staggered_view_component/menu_staggered_view_component_model.dart';
|
import 'package:hub/components/organism_components/menu_staggered_view_component/menu_staggered_view_component_model.dart';
|
||||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/pages/reservation_page/reservation_page_widget.dart';
|
|
||||||
import 'package:hub/shared/extensions/dialog_extensions.dart';
|
import 'package:hub/shared/extensions/dialog_extensions.dart';
|
||||||
|
|
||||||
import '/components/molecular_components/option_selection_modal/option_selection_modal_widget.dart';
|
import '/components/molecular_components/option_selection_modal/option_selection_modal_widget.dart';
|
||||||
|
@ -41,9 +40,22 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
isGrid = !isGrid;
|
isGrid = !isGrid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future accessQRCodeOptAction(BuildContext context) async {
|
||||||
|
context.push(
|
||||||
|
'/qrCodePage',
|
||||||
|
extra: <String, dynamic>{
|
||||||
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
|
hasTransition: true,
|
||||||
|
transitionType: PageTransitionType.scale,
|
||||||
|
alignment: Alignment.bottomCenter,
|
||||||
|
),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
Future scheduleCompleteVisitAction(BuildContext context) async {
|
Future scheduleCompleteVisitAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'scheduleCompleteVisitPage',
|
'/scheduleCompleteVisitPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -57,8 +69,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
Future deliverySchedule(BuildContext context) async {
|
Future deliverySchedule(BuildContext context) async {
|
||||||
final isProvisional = AppState().provisional;
|
final isProvisional = AppState().provisional;
|
||||||
if (isProvisional == true) {
|
if (isProvisional == true) {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'deliverySchedule',
|
'/deliverySchedule',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -75,8 +87,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
Future provisionalSchedule(BuildContext context) async {
|
Future provisionalSchedule(BuildContext context) async {
|
||||||
final isProvisional = AppState().provisional;
|
final isProvisional = AppState().provisional;
|
||||||
if (isProvisional == true) {
|
if (isProvisional == true) {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'provisionalSchedule',
|
'/provisionalSchedule',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -93,8 +105,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
Future fastPassAction(BuildContext context) async {
|
Future fastPassAction(BuildContext context) async {
|
||||||
final isWpp = AppState().whatsapp;
|
final isWpp = AppState().whatsapp;
|
||||||
if (isWpp) {
|
if (isWpp) {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'fastPassPage',
|
'/fastPassPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -150,8 +162,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future registerVisitorOptAction(BuildContext context) async {
|
Future registerVisitorOptAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'registerVisitorPage',
|
'/registerVisitorPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -163,8 +175,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future peopleOnThePropertyAction(BuildContext context) async {
|
Future peopleOnThePropertyAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'peopleOnThePropertyPage',
|
'/peopleOnThePropertyPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -184,8 +196,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
), () async {
|
), () async {
|
||||||
AppState().deleteAll();
|
AppState().deleteAll();
|
||||||
|
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'welcomePage',
|
'/welcomePage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -198,8 +210,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future preferencesSettings(BuildContext context) async {
|
Future preferencesSettings(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'preferencesSettings',
|
'/preferencesSettings',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -207,15 +219,15 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
).then((value) => true);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future packageOrder(BuildContext context) async {
|
Future packageOrder(BuildContext context) async {
|
||||||
final isWpp = AppState().whatsapp;
|
final isWpp = AppState().whatsapp;
|
||||||
|
|
||||||
if (isWpp) {
|
if (isWpp) {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'packageOrder',
|
'/packageOrder',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -223,7 +235,7 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
).then((value) => true);
|
);
|
||||||
} else {
|
} else {
|
||||||
DialogUnavailable.unavailableFeature(context);
|
DialogUnavailable.unavailableFeature(context);
|
||||||
}
|
}
|
||||||
|
@ -232,7 +244,16 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
Future reservation(BuildContext context) async {
|
Future reservation(BuildContext context) async {
|
||||||
final isWpp = AppState().whatsapp;
|
final isWpp = AppState().whatsapp;
|
||||||
if (isWpp) {
|
if (isWpp) {
|
||||||
Navigator.push(context, MaterialPageRoute(builder: (context) => ReservationPageWidget()));
|
context.push(
|
||||||
|
'/reservation',
|
||||||
|
extra: <String, dynamic>{
|
||||||
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
|
hasTransition: true,
|
||||||
|
transitionType: PageTransitionType.scale,
|
||||||
|
alignment: Alignment.bottomCenter,
|
||||||
|
),
|
||||||
|
},
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
DialogUnavailable.unavailableFeature(context);
|
DialogUnavailable.unavailableFeature(context);
|
||||||
}
|
}
|
||||||
|
@ -285,8 +306,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future liberationHistoryAction(BuildContext context) async {
|
Future liberationHistoryAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'liberationHistory',
|
'/liberationHistory',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -298,8 +319,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future accessHistoryAction(BuildContext context) async {
|
Future accessHistoryAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'acessHistoryPage',
|
'/acessHistoryPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -311,21 +332,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future visitHistoryAction(BuildContext context) async {
|
Future visitHistoryAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'scheduleCompleteVisitPage',
|
'/scheduleCompleteVisitPage',
|
||||||
extra: <String, dynamic>{
|
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
|
||||||
hasTransition: true,
|
|
||||||
transitionType: PageTransitionType.scale,
|
|
||||||
alignment: Alignment.bottomCenter,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future accessQRCodeOptAction(BuildContext context) async {
|
|
||||||
context.pushNamed(
|
|
||||||
'qrCodePage',
|
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -337,8 +345,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future messageHistoryAction(BuildContext context) async {
|
Future messageHistoryAction(BuildContext context) async {
|
||||||
context.pushNamed(
|
context.push(
|
||||||
'messageHistoryPage',
|
'/messageHistoryPage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
|
|
@ -3,7 +3,6 @@ import 'package:hub/backend/schema/enums/enums.dart';
|
||||||
import 'package:hub/components/atomic_components/menu_button_item/menu_button_item_widget.dart';
|
import 'package:hub/components/atomic_components/menu_button_item/menu_button_item_widget.dart';
|
||||||
import 'package:hub/components/atomic_components/menu_card_item/menu_card_item.dart';
|
import 'package:hub/components/atomic_components/menu_card_item/menu_card_item.dart';
|
||||||
import 'package:hub/components/molecular_components/menu_item/menu_item.dart';
|
import 'package:hub/components/molecular_components/menu_item/menu_item.dart';
|
||||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
|
||||||
|
|
||||||
import '/components/organism_components/menu_list_view_component/menu_list_view_component_widget.dart';
|
import '/components/organism_components/menu_list_view_component/menu_list_view_component_widget.dart';
|
||||||
import '/components/organism_components/menu_staggered_view_component/menu_staggered_view_component_widget.dart';
|
import '/components/organism_components/menu_staggered_view_component/menu_staggered_view_component_widget.dart';
|
||||||
|
@ -584,17 +583,4 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future accessQRCodeOptAction(BuildContext context) async {
|
|
||||||
context.pushNamed(
|
|
||||||
'qrCodePage',
|
|
||||||
extra: <String, dynamic>{
|
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
|
||||||
hasTransition: true,
|
|
||||||
transitionType: PageTransitionType.scale,
|
|
||||||
alignment: Alignment.bottomCenter,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,14 @@
|
||||||
import 'package:hub/app_state.dart';
|
|
||||||
import 'package:hub/backend/api_requests/api_calls.dart';
|
|
||||||
|
|
||||||
import 'package:hub/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
|
||||||
|
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
|
import 'package:hub/backend/api_requests/api_calls.dart';
|
||||||
|
import 'package:hub/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
||||||
import 'package:hub/components/organism_components/schedule_visit_detail/schedule_visit_detail_model.dart';
|
import 'package:hub/components/organism_components/schedule_visit_detail/schedule_visit_detail_model.dart';
|
||||||
import 'package:hub/components/templates_components/visitor_details_modal_template_component/visitor_details_modal_template_component_widget.dart';
|
|
||||||
import 'package:hub/flutter_flow/custom_functions.dart';
|
import 'package:hub/flutter_flow/custom_functions.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_model.dart';
|
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
class ScheduleVisitDetailWidget extends StatefulWidget {
|
class ScheduleVisitDetailWidget extends StatefulWidget {
|
||||||
|
@ -156,7 +151,7 @@ class _ScheduleVisitDetailWidgetState extends State<ScheduleVisitDetailWidget> {
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -808,7 +803,7 @@ class _ScheduleVisitDetailWidgetState extends State<ScheduleVisitDetailWidget> {
|
||||||
(_model.postScheduleVisit?.jsonBody ?? ''),
|
(_model.postScheduleVisit?.jsonBody ?? ''),
|
||||||
) ==
|
) ==
|
||||||
false) {
|
false) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
} else {
|
} else {
|
||||||
await showModalBottomSheet(
|
await showModalBottomSheet(
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'package:hub/backend/api_requests/api_calls.dart';
|
||||||
import 'package:hub/components/organism_components/up_arrow_linked_locals_component/up_arrow_linked_locals_component_model.dart';
|
import 'package:hub/components/organism_components/up_arrow_linked_locals_component/up_arrow_linked_locals_component_model.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
class UpArrowLinkedLocalsComponentWidget extends StatefulWidget {
|
class UpArrowLinkedLocalsComponentWidget extends StatefulWidget {
|
||||||
|
@ -140,7 +141,7 @@ class _UpArrowLinkedLocalsComponentWidgetState
|
||||||
r'''$.CLI_NOME''',
|
r'''$.CLI_NOME''',
|
||||||
).toString();
|
).toString();
|
||||||
setState(() {});
|
setState(() {});
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 50.0,
|
width: 50.0,
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
import '/backend/api_requests/api_calls.dart';
|
import '/backend/api_requests/api_calls.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'access_notification_modal_template_component_widget.dart'
|
import 'access_notification_modal_template_component_widget.dart'
|
||||||
show AccessNotificationModalTemplateComponentWidget;
|
show AccessNotificationModalTemplateComponentWidget;
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class AccessNotificationModalTemplateComponentModel
|
class AccessNotificationModalTemplateComponentModel
|
||||||
extends FlutterFlowModel<AccessNotificationModalTemplateComponentWidget> {
|
extends FlutterFlowModel<AccessNotificationModalTemplateComponentWidget> {
|
||||||
|
@ -68,7 +70,7 @@ class AccessNotificationModalTemplateComponentModel
|
||||||
(visitRequest.jsonBody ?? ''),
|
(visitRequest.jsonBody ?? ''),
|
||||||
) ==
|
) ==
|
||||||
false) {
|
false) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
|
import 'package:easy_debounce/easy_debounce.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
import '/flutter_flow/flutter_flow_theme.dart';
|
import '/flutter_flow/flutter_flow_theme.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
import '/flutter_flow/flutter_flow_widgets.dart';
|
import '/flutter_flow/flutter_flow_widgets.dart';
|
||||||
import 'package:easy_debounce/easy_debounce.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter/services.dart';
|
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
|
||||||
import 'change_pass_model.dart';
|
import 'change_pass_model.dart';
|
||||||
|
|
||||||
export 'change_pass_model.dart';
|
export 'change_pass_model.dart';
|
||||||
|
|
||||||
class PassKeyTemplateWidget extends StatefulWidget {
|
class PassKeyTemplateWidget extends StatefulWidget {
|
||||||
|
@ -311,7 +312,8 @@ class _PassKeyTemplateWidgetState extends State<PassKeyTemplateWidget> {
|
||||||
? _model.keyTextFieldTextController2.text
|
? _model.keyTextFieldTextController2.text
|
||||||
: _model.keyTextFieldTextController1.text,
|
: _model.keyTextFieldTextController1.text,
|
||||||
);
|
);
|
||||||
Navigator.pop(context, true);
|
// Navigator.pop(context, true);
|
||||||
|
context.pop(true);
|
||||||
},
|
},
|
||||||
text: FFLocalizations.of(context).getVariableText(
|
text: FFLocalizations.of(context).getVariableText(
|
||||||
ptText:
|
ptText:
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:hub/components/templates_components/details_component/details_co
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
||||||
import 'package:hub/pages/schedule_complete_visit_page/schedule_complete_visit_page_widget.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/shared/utils/validator_util.dart';
|
import 'package:hub/shared/utils/validator_util.dart';
|
||||||
import 'package:share_plus/share_plus.dart';
|
import 'package:share_plus/share_plus.dart';
|
||||||
|
|
||||||
|
@ -43,7 +43,9 @@ Widget buildDetails(
|
||||||
visitaWrapItem['VTE_DOCUMENTO'] ?? '',
|
visitaWrapItem['VTE_DOCUMENTO'] ?? '',
|
||||||
)
|
)
|
||||||
.then((value) {
|
.then((value) {
|
||||||
Navigator.pop(context, value);
|
// Navigator.pop(context, value);
|
||||||
|
context.pop(value);
|
||||||
|
|
||||||
if (value == false) {
|
if (value == false) {
|
||||||
showSnackbar(
|
showSnackbar(
|
||||||
context,
|
context,
|
||||||
|
@ -64,7 +66,7 @@ Widget buildDetails(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}).catchError((err, stack) {
|
}).catchError((err, stack) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
showSnackbar(
|
showSnackbar(
|
||||||
context,
|
context,
|
||||||
FFLocalizations.of(context).getVariableText(
|
FFLocalizations.of(context).getVariableText(
|
||||||
|
@ -100,19 +102,15 @@ Widget buildDetails(
|
||||||
),
|
),
|
||||||
icon: const Icon(Icons.refresh),
|
icon: const Icon(Icons.refresh),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
|
|
||||||
Navigator.push(
|
context.pushNamed('scheduleCompleteVisitPage', extra: {
|
||||||
context,
|
'dropdownValue1': visitaWrapItem['MOT_DESCRICAO'],
|
||||||
MaterialPageRoute(
|
'dropdownValue2': visitaWrapItem['NAC_DESCRICAO'],
|
||||||
builder: (context) => ScheduleCompleteVisitPageWidget(
|
'visitorJsonList': [visitaWrapItem],
|
||||||
dropdownValue1: visitaWrapItem['MOT_DESCRICAO'],
|
'visitorStrList': visitaWrapItem['VTE_DOCUMENTO'],
|
||||||
dropdownValue2: visitaWrapItem['NAC_DESCRICAO'],
|
});
|
||||||
visitorJsonList: [visitaWrapItem],
|
|
||||||
visitorStrList: visitaWrapItem['VTE_DOCUMENTO'],
|
|
||||||
)),
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
width: 130,
|
width: 130,
|
||||||
|
|
|
@ -273,7 +273,7 @@ class _ForgotPasswordTemplateComponentWidgetState
|
||||||
FFLocalizations.of(context).getVariableText(
|
FFLocalizations.of(context).getVariableText(
|
||||||
enText: "Send E-mail Successful!",
|
enText: "Send E-mail Successful!",
|
||||||
ptText: "E-mail Enviado com Sucesso!"));
|
ptText: "E-mail Enviado com Sucesso!"));
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
} else {
|
} else {
|
||||||
await DialogUtil.error(
|
await DialogUtil.error(
|
||||||
context,
|
context,
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hub/app_state.dart';
|
import 'package:hub/app_state.dart';
|
||||||
import 'package:hub/backend/api_requests/api_calls.dart';
|
import 'package:hub/backend/api_requests/api_calls.dart';
|
||||||
import 'package:hub/backend/api_requests/api_manager.dart';
|
|
||||||
import 'package:hub/components/templates_components/liberation_history_item_details_template_component/liberation_history_item_details_template_component_widget.dart';
|
import 'package:hub/components/templates_components/liberation_history_item_details_template_component/liberation_history_item_details_template_component_widget.dart';
|
||||||
|
|
||||||
import 'package:hub/flutter_flow/flutter_flow_model.dart';
|
import 'package:hub/flutter_flow/flutter_flow_model.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class LiberationHistoryItemDetailsTemplateComponentModel
|
class LiberationHistoryItemDetailsTemplateComponentModel
|
||||||
extends FlutterFlowModel<
|
extends FlutterFlowModel<
|
||||||
|
@ -72,7 +70,7 @@ class LiberationHistoryItemDetailsTemplateComponentModel
|
||||||
(visitRequest.jsonBody ?? ''),
|
(visitRequest.jsonBody ?? ''),
|
||||||
) ==
|
) ==
|
||||||
false) {
|
false) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hub/app_state.dart';
|
import 'package:hub/app_state.dart';
|
||||||
import 'package:hub/backend/api_requests/api_calls.dart';
|
import 'package:hub/backend/api_requests/api_calls.dart';
|
||||||
import 'package:hub/backend/api_requests/api_manager.dart';
|
|
||||||
import 'package:hub/components/templates_components/message_notificaion_modal_template_component/message_notification_widget.dart';
|
import 'package:hub/components/templates_components/message_notificaion_modal_template_component/message_notification_widget.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_model.dart';
|
import 'package:hub/flutter_flow/flutter_flow_model.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
class MessageNotificationModalTemplateComponentModel
|
class MessageNotificationModalTemplateComponentModel
|
||||||
extends FlutterFlowModel<MessageNotificationModalTemplateComponentWidget> {
|
extends FlutterFlowModel<MessageNotificationModalTemplateComponentWidget> {
|
||||||
|
@ -69,7 +69,7 @@ class MessageNotificationModalTemplateComponentModel
|
||||||
(visitRequest.jsonBody ?? ''),
|
(visitRequest.jsonBody ?? ''),
|
||||||
) ==
|
) ==
|
||||||
false) {
|
false) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -10,9 +10,6 @@ import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'qr_code_pass_key_template_component_model.dart';
|
import 'qr_code_pass_key_template_component_model.dart';
|
||||||
export 'qr_code_pass_key_template_component_model.dart';
|
export 'qr_code_pass_key_template_component_model.dart';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QrCodePassKeyTemplateComponentWidget extends StatefulWidget {
|
class QrCodePassKeyTemplateComponentWidget extends StatefulWidget {
|
||||||
const QrCodePassKeyTemplateComponentWidget({
|
const QrCodePassKeyTemplateComponentWidget({
|
||||||
super.key,
|
super.key,
|
||||||
|
@ -84,7 +81,8 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
tablet: false,
|
tablet: false,
|
||||||
))
|
))
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 8.0),
|
padding:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 8.0),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
splashColor: Colors.transparent,
|
splashColor: Colors.transparent,
|
||||||
focusColor: Colors.transparent,
|
focusColor: Colors.transparent,
|
||||||
|
@ -106,8 +104,8 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
const EdgeInsetsDirectional.fromSTEB(12.0, 0.0, 0.0, 0.0),
|
12.0, 0.0, 0.0, 0.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'',
|
'',
|
||||||
style:
|
style:
|
||||||
|
@ -127,7 +125,8 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 0.0, 0.0),
|
padding:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 0.0, 0.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
FFLocalizations.of(context).getText(
|
FFLocalizations.of(context).getText(
|
||||||
'h1xilful' /* DIGITE A SUA SENHA */,
|
'h1xilful' /* DIGITE A SUA SENHA */,
|
||||||
|
@ -143,7 +142,8 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(16.0, 4.0, 16.0, 4.0),
|
padding:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(16.0, 4.0, 16.0, 4.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
FFLocalizations.of(context).getText(
|
FFLocalizations.of(context).getText(
|
||||||
'ujodm2ci' /* Para gerar o QR Code digite a ... */,
|
'ujodm2ci' /* Para gerar o QR Code digite a ... */,
|
||||||
|
@ -163,7 +163,8 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
key: _model.formKey,
|
key: _model.formKey,
|
||||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(16.0, 12.0, 16.0, 0.0),
|
padding:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(16.0, 12.0, 16.0, 0.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
|
@ -275,8 +276,7 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
.asValidator(context),
|
.asValidator(context),
|
||||||
inputFormatters: [
|
inputFormatters: [
|
||||||
FilteringTextInputFormatter.allow(RegExp('[0-9]')),
|
FilteringTextInputFormatter.allow(RegExp('[0-9]')),
|
||||||
LengthLimitingTextInputFormatter(4),
|
LengthLimitingTextInputFormatter(4),
|
||||||
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -285,7 +285,8 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
Align(
|
Align(
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 24.0, 0.0, 0.0),
|
padding:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(0.0, 24.0, 0.0, 0.0),
|
||||||
child: FFButtonWidget(
|
child: FFButtonWidget(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (_model.formKey.currentState == null ||
|
if (_model.formKey.currentState == null ||
|
||||||
|
@ -295,7 +296,7 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
await widget.toggleActionStatus?.call(
|
await widget.toggleActionStatus?.call(
|
||||||
_model.keyTextFieldTextController.text,
|
_model.keyTextFieldTextController.text,
|
||||||
);
|
);
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
text: FFLocalizations.of(context).getText(
|
text: FFLocalizations.of(context).getText(
|
||||||
'2cybbi5p' /* Enviar */,
|
'2cybbi5p' /* Enviar */,
|
||||||
|
@ -303,9 +304,10 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
width: 270.0,
|
width: 270.0,
|
||||||
height: 50.0,
|
height: 50.0,
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
iconPadding:
|
0.0, 0.0, 0.0, 0.0),
|
||||||
const EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
|
iconPadding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
0.0, 0.0, 0.0, 0.0),
|
||||||
color: const Color(0xFF1AAB5F),
|
color: const Color(0xFF1AAB5F),
|
||||||
textStyle: FlutterFlowTheme.of(context).titleSmall.override(
|
textStyle: FlutterFlowTheme.of(context).titleSmall.override(
|
||||||
fontFamily: 'Plus Jakarta Sans',
|
fontFamily: 'Plus Jakarta Sans',
|
||||||
|
@ -331,4 +333,4 @@ class _QrCodePassKeyTemplateComponentWidgetState
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,24 +1,17 @@
|
||||||
import 'dart:convert';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'dart:developer';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/flutter_flow/nav/serialization_util.dart';
|
|
||||||
import 'package:hub/shared/utils/dialog_util.dart';
|
import 'package:hub/shared/utils/dialog_util.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:share_plus/share_plus.dart';
|
||||||
|
|
||||||
import '/backend/api_requests/api_calls.dart';
|
import '/backend/api_requests/api_calls.dart';
|
||||||
import '/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
|
||||||
import '/components/templates_components/visitor_details_modal_template_component/visitor_details_modal_template_component_widget.dart';
|
|
||||||
import '/flutter_flow/flutter_flow_icon_button.dart';
|
import '/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import '/flutter_flow/flutter_flow_theme.dart';
|
import '/flutter_flow/flutter_flow_theme.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
import '/actions/actions.dart' as action_blocks;
|
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
|
||||||
import 'package:share_plus/share_plus.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter/scheduler.dart';
|
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
import 'view_visit_detail_model.dart';
|
import 'view_visit_detail_model.dart';
|
||||||
|
|
||||||
export 'view_visit_detail_model.dart';
|
export 'view_visit_detail_model.dart';
|
||||||
|
|
||||||
class ViewVisitDetailWidget extends StatefulWidget {
|
class ViewVisitDetailWidget extends StatefulWidget {
|
||||||
|
@ -176,7 +169,7 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -211,7 +204,7 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
|
||||||
hoverColor: Colors.transparent,
|
hoverColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
// Navigator.pop(context);
|
// context.pop();
|
||||||
// await showModalBottomSheet(
|
// await showModalBottomSheet(
|
||||||
// isScrollControlled: true,
|
// isScrollControlled: true,
|
||||||
// backgroundColor: Colors.transparent,
|
// backgroundColor: Colors.transparent,
|
||||||
|
@ -840,7 +833,7 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
|
||||||
(_model.deleteVisit?.jsonBody ?? ''),
|
(_model.deleteVisit?.jsonBody ?? ''),
|
||||||
) ==
|
) ==
|
||||||
false) {
|
false) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
} else {
|
} else {
|
||||||
final error =
|
final error =
|
||||||
await DialogUtil.errorDefault(context);
|
await DialogUtil.errorDefault(context);
|
||||||
|
@ -890,11 +883,11 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
|
||||||
hoverColor: Colors.transparent,
|
hoverColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
|
|
||||||
context.pushNamed(
|
context.go(
|
||||||
'scheduleCompleteVisitPage',
|
'/scheduleCompleteVisitPage',
|
||||||
queryParameters: {
|
extra: {
|
||||||
'visitStartDateStr': serializeParam(
|
'visitStartDateStr': serializeParam(
|
||||||
dateTimeFormat(
|
dateTimeFormat(
|
||||||
'd/M/y H:mm:ss',
|
'd/M/y H:mm:ss',
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
import '/flutter_flow/flutter_flow_theme.dart';
|
import '/flutter_flow/flutter_flow_theme.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
|
@ -92,7 +93,7 @@ class _VisitorDetailsModalTemplateComponentWidgetState
|
||||||
hoverColor: Colors.transparent,
|
hoverColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
|
|
|
@ -1,21 +1,17 @@
|
||||||
import 'dart:developer';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/backend/api_requests/api_calls.dart';
|
import 'package:hub/backend/api_requests/api_calls.dart';
|
||||||
import 'package:hub/components/atomic_components/shared_components_atoms/toast.dart';
|
import 'package:hub/components/atomic_components/shared_components_atoms/toast.dart';
|
||||||
import 'package:hub/components/molecular_components/visitor_not_found_component/visitor_not_found_component_widget.dart';
|
import 'package:hub/components/molecular_components/visitor_not_found_component/visitor_not_found_component_widget.dart';
|
||||||
import 'package:hub/components/templates_components/visitor_details_modal_template_component/visitor_details_modal_template_component_widget.dart';
|
|
||||||
import 'package:hub/components/templates_components/visitor_search_modal_template_component/visitor_search_modal_template_component_model.dart';
|
import 'package:hub/components/templates_components/visitor_search_modal_template_component/visitor_search_modal_template_component_model.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
||||||
import 'package:hub/flutter_flow/internationalization.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
class VisitorSearchModalTemplateComponentWidget extends StatefulWidget {
|
class VisitorSearchModalTemplateComponentWidget extends StatefulWidget {
|
||||||
|
@ -434,7 +430,7 @@ class _VisitorSearchModalTemplateComponentWidgetState
|
||||||
await widget.getDocs?.call(
|
await widget.getDocs?.call(
|
||||||
_model.docs,
|
_model.docs,
|
||||||
);
|
);
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> addVisitor(BuildContext context) async {
|
Future<void> addVisitor(BuildContext context) async {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import 'package:from_css_color/from_css_color.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
import 'package:hub/flutter_flow/flutter_flow_widgets.dart';
|
||||||
import 'package:hub/flutter_flow/internationalization.dart';
|
import 'package:hub/flutter_flow/internationalization.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:json_path/json_path.dart';
|
import 'package:json_path/json_path.dart';
|
||||||
import 'package:timeago/timeago.dart' as timeago;
|
import 'package:timeago/timeago.dart' as timeago;
|
||||||
|
@ -567,7 +568,7 @@ void showAlertDialog(BuildContext context, String title, String content,
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
FFButtonWidget(
|
FFButtonWidget(
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => context.pop(), //Navigator.pop(context),
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
width: MediaQuery.of(context).size.width * 0.3,
|
width: MediaQuery.of(context).size.width * 0.3,
|
||||||
height: MediaQuery.of(context).size.height * 0.05,
|
height: MediaQuery.of(context).size.height * 0.05,
|
||||||
|
|
|
@ -96,20 +96,33 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) => GoRouter(
|
||||||
builder: (context, params) => const RegisterVisitorPageWidget(),
|
builder: (context, params) => const RegisterVisitorPageWidget(),
|
||||||
),
|
),
|
||||||
FFRoute(
|
FFRoute(
|
||||||
name: 'scheduleCompleteVisitPage',
|
name: 'scheduleCompleteVisitPage',
|
||||||
path: '/scheduleCompleteVisitPage',
|
path: '/scheduleCompleteVisitPage',
|
||||||
builder: (context, params) => ScheduleCompleteVisitPageWidget(
|
builder: (context, params) {
|
||||||
visitorStrList: params.getParam(
|
final dropdownValue1 = params.getParam(
|
||||||
'visitorStrList',
|
'dropdownValue1',
|
||||||
ParamType.String,
|
ParamType.String,
|
||||||
),
|
);
|
||||||
visitorJsonList: params.getParam<dynamic>(
|
final dropdownValue2 = params.getParam(
|
||||||
'visitorJsonList',
|
'dropdownValue2',
|
||||||
ParamType.JSON,
|
ParamType.String,
|
||||||
isList: true,
|
);
|
||||||
),
|
final visitorStrList = params.getParam(
|
||||||
),
|
'visitorStrList',
|
||||||
),
|
ParamType.String,
|
||||||
|
);
|
||||||
|
final visitorJsonList = params.getParam<dynamic>(
|
||||||
|
'visitorJsonList',
|
||||||
|
ParamType.JSON,
|
||||||
|
isList: true,
|
||||||
|
);
|
||||||
|
return ScheduleCompleteVisitPageWidget(
|
||||||
|
dropdownValue1: dropdownValue1 ?? '',
|
||||||
|
dropdownValue2: dropdownValue2 ?? '',
|
||||||
|
visitorStrList: visitorStrList ?? '',
|
||||||
|
visitorJsonList: visitorJsonList ?? [],
|
||||||
|
);
|
||||||
|
}),
|
||||||
FFRoute(
|
FFRoute(
|
||||||
name: 'deliverySchedule',
|
name: 'deliverySchedule',
|
||||||
path: '/deliverySchedule',
|
path: '/deliverySchedule',
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:file_picker/file_picker.dart';
|
import 'package:file_picker/file_picker.dart';
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:image_picker/image_picker.dart';
|
import 'package:image_picker/image_picker.dart';
|
||||||
import 'package:mime_type/mime_type.dart';
|
import 'package:mime_type/mime_type.dart';
|
||||||
import 'package:video_player/video_player.dart';
|
import 'package:video_player/video_player.dart';
|
||||||
|
@ -79,10 +80,8 @@ Future<List<SelectedFile>?> selectMediaWithSourceBottomSheet({
|
||||||
),
|
),
|
||||||
tileColor: FlutterFlowTheme.of(context).primaryBackground,
|
tileColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||||
dense: false,
|
dense: false,
|
||||||
onTap: () => Navigator.pop(
|
onTap: () => context.pop(mediaSource),
|
||||||
context,
|
// Navigator.pop(context,mediaSource,),
|
||||||
mediaSource,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
final mediaSource = await showModalBottomSheet<MediaSource>(
|
final mediaSource = await showModalBottomSheet<MediaSource>(
|
||||||
context: context,
|
context: context,
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:hub/components/templates_components/provisional_schedule_templat
|
||||||
import 'package:hub/components/templates_components/provisional_schedule_template/provisional_shcedule_template_widget.dart';
|
import 'package:hub/components/templates_components/provisional_schedule_template/provisional_shcedule_template_widget.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
|
@ -53,7 +54,7 @@ class _DeliveryScheduleState extends State<DeliverySchedule> {
|
||||||
size: 30.0,
|
size: 30.0,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/scheduler.dart';
|
import 'package:flutter/scheduler.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/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/shared/utils/webview_util.dart';
|
import 'package:hub/shared/utils/webview_util.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';
|
||||||
|
@ -69,7 +70,7 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
||||||
},
|
},
|
||||||
onUpdateVisitedHistory: (controller, uri, isVisited) {
|
onUpdateVisitedHistory: (controller, uri, isVisited) {
|
||||||
if (uri.toString().contains('/hub/home')) {
|
if (uri.toString().contains('/hub/home')) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -116,7 +117,7 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
||||||
},
|
},
|
||||||
onUrlChange: (url) {
|
onUrlChange: (url) {
|
||||||
if (url.url.toString().contains('/hub/home')) {
|
if (url.url.toString().contains('/hub/home')) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
|
@ -262,7 +262,7 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
_requestFuture = _fetchRequests();
|
_requestFuture = _fetchRequests();
|
||||||
});
|
});
|
||||||
|
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -309,7 +309,7 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
_requestFuture = _fetchRequests();
|
_requestFuture = _fetchRequests();
|
||||||
});
|
});
|
||||||
|
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -128,7 +128,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
ptText: 'Não',
|
ptText: 'Não',
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
|
@ -157,7 +157,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
)
|
)
|
||||||
.then((value) {
|
.then((value) {
|
||||||
if (value.jsonBody['error'] == false) {
|
if (value.jsonBody['error'] == false) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
|
|
||||||
AppState().notify = !AppState().notify;
|
AppState().notify = !AppState().notify;
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
@ -203,7 +203,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}).catchError((err) {
|
}).catchError((err) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
content: Text(
|
content: Text(
|
||||||
|
@ -226,7 +226,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
}).whenComplete(() => notifyListeners());
|
}).whenComplete(() => notifyListeners());
|
||||||
} on Exception catch (e) {
|
} on Exception catch (e) {
|
||||||
log(e.toString());
|
log(e.toString());
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
text: FFLocalizations.of(context).getVariableText(
|
text: FFLocalizations.of(context).getVariableText(
|
||||||
|
@ -285,7 +285,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
ptText: 'Cancelar',
|
ptText: 'Cancelar',
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
width: MediaQuery.of(context).size.width * 0.3,
|
width: MediaQuery.of(context).size.width * 0.3,
|
||||||
|
@ -316,8 +316,19 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
AppState().deleteLocal();
|
AppState().deleteLocal();
|
||||||
AppState().deleteOwnerUUID();
|
AppState().deleteOwnerUUID();
|
||||||
|
|
||||||
context.pushNamed(
|
context.pop();
|
||||||
'homePage',
|
context.go(
|
||||||
|
'/homePage',
|
||||||
|
extra: <String, dynamic>{
|
||||||
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
|
hasTransition: true,
|
||||||
|
transitionType: PageTransitionType.scale,
|
||||||
|
alignment: Alignment.bottomCenter,
|
||||||
|
),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
context.replace(
|
||||||
|
'/homePage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -351,7 +362,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
})
|
})
|
||||||
// ignore: body_might_complete_normally_catch_error
|
// ignore: body_might_complete_normally_catch_error
|
||||||
.catchError((err, stack) {
|
.catchError((err, stack) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
content: Text(
|
content: Text(
|
||||||
|
@ -374,7 +385,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
});
|
});
|
||||||
// notifyListeners();
|
// notifyListeners();
|
||||||
} catch (err, stack) {
|
} catch (err, stack) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
content: Text(
|
content: Text(
|
||||||
|
@ -444,7 +455,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
FFButtonWidget(
|
FFButtonWidget(
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => context.pop(), // Navigator.pop(context),
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
width: MediaQuery.of(context).size.width * 0.3,
|
width: MediaQuery.of(context).size.width * 0.3,
|
||||||
height: MediaQuery.of(context).size.height * 0.05,
|
height: MediaQuery.of(context).size.height * 0.05,
|
||||||
|
@ -475,8 +486,8 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
if (value.jsonBody['error'] == false) {
|
if (value.jsonBody['error'] == false) {
|
||||||
AppState().deleteAll();
|
AppState().deleteAll();
|
||||||
AppState().isLogged = false;
|
AppState().isLogged = false;
|
||||||
context.goNamed(
|
context.go(
|
||||||
'welcomePage',
|
'/welcomePage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
@ -488,7 +499,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
}
|
}
|
||||||
}).catchError((err) {
|
}).catchError((err) {
|
||||||
log(err.toString());
|
log(err.toString());
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
content: Text(
|
content: Text(
|
||||||
|
@ -511,7 +522,7 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
});
|
});
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
} catch (err, stack) {
|
} catch (err, stack) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
content: Text(
|
content: Text(
|
||||||
|
@ -753,8 +764,8 @@ class PreferencesPageModel with ChangeNotifier {
|
||||||
AppState().deleteAll();
|
AppState().deleteAll();
|
||||||
// setState(() {});
|
// setState(() {});
|
||||||
|
|
||||||
context.goNamed(
|
context.go(
|
||||||
'welcomePage',
|
'/welcomePage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:hub/components/templates_components/provisional_schedule_templat
|
||||||
import 'package:hub/components/templates_components/provisional_schedule_template/provisional_shcedule_template_widget.dart';
|
import 'package:hub/components/templates_components/provisional_schedule_template/provisional_shcedule_template_widget.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
|
@ -53,7 +54,7 @@ class _ProvisionalScheduleState extends State<ProvisionalSchedule> {
|
||||||
size: 30.0,
|
size: 30.0,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
|
|
|
@ -144,8 +144,8 @@ class _ReceptionPageWidgetState extends State<ReceptionPageWidget> {
|
||||||
AppState().deleteAll();
|
AppState().deleteAll();
|
||||||
setState(() {});
|
setState(() {});
|
||||||
|
|
||||||
context.goNamed(
|
context.go(
|
||||||
'welcomePage',
|
'/welcomePage',
|
||||||
extra: <String, dynamic>{
|
extra: <String, dynamic>{
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
hasTransition: true,
|
hasTransition: true,
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import 'dart:developer';
|
import 'dart:io' show Platform;
|
||||||
|
|
||||||
import 'package:flutter/scheduler.dart';
|
|
||||||
import 'package:hub/app_state.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/scheduler.dart';
|
||||||
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||||
|
import 'package:hub/app_state.dart';
|
||||||
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
import 'package:hub/shared/utils/webview_util.dart';
|
import 'package:hub/shared/utils/webview_util.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';
|
||||||
import 'dart:io' show Platform;
|
|
||||||
|
|
||||||
class ReservationPageWidget extends StatefulWidget {
|
class ReservationPageWidget extends StatefulWidget {
|
||||||
final String freToken = AppState().userUUID;
|
final String freToken = AppState().userUUID;
|
||||||
|
@ -70,7 +70,7 @@ class _ReservationPageWidgetState extends State<ReservationPageWidget> {
|
||||||
},
|
},
|
||||||
onUpdateVisitedHistory: (controller, uri, isVisited) {
|
onUpdateVisitedHistory: (controller, uri, isVisited) {
|
||||||
if (uri.toString().contains('/hub/home')) {
|
if (uri.toString().contains('/hub/home')) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -117,7 +117,7 @@ class _ReservationPageWidgetState extends State<ReservationPageWidget> {
|
||||||
},
|
},
|
||||||
onUrlChange: (url) {
|
onUrlChange: (url) {
|
||||||
if (url.url.toString().contains('/hub/home')) {
|
if (url.url.toString().contains('/hub/home')) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
|
@ -1634,7 +1634,7 @@ Widget scheduleVisit(BuildContext context,
|
||||||
(value.jsonBody ?? ''),
|
(value.jsonBody ?? ''),
|
||||||
) ==
|
) ==
|
||||||
false) {
|
false) {
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
|
|
||||||
//MILESTONE
|
//MILESTONE
|
||||||
_model.dropDownValue1 = null;
|
_model.dropDownValue1 = null;
|
||||||
|
@ -1657,7 +1657,7 @@ Widget scheduleVisit(BuildContext context,
|
||||||
await showShare(value.jsonBody);
|
await showShare(value.jsonBody);
|
||||||
} else {
|
} else {
|
||||||
await DialogUtil.errorDefault(context);
|
await DialogUtil.errorDefault(context);
|
||||||
Navigator.pop(context);
|
context.pop();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue