Updating to latest FlutterFlow output.
This commit is contained in:
parent
7345882967
commit
c0363c12f8
|
@ -44,8 +44,8 @@
|
||||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
6436409927A31CD100820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409127A31CD500820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
6436409727A31CD000820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409D27A31CDC00820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
@ -225,8 +225,8 @@
|
||||||
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
||||||
isa = PBXVariantGroup;
|
isa = PBXVariantGroup;
|
||||||
children = (
|
children = (
|
||||||
6436409927A31CD100820AF7 /* pt */,
|
6436409127A31CD500820AF7 /* pt */,
|
||||||
6436409727A31CD000820AF7 /* en */,
|
6436409D27A31CDC00820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
import '/backend/api_requests/api_calls.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
import '/flutter_flow/form_field_controller.dart';
|
import '/flutter_flow/form_field_controller.dart';
|
||||||
|
import '/flutter_flow/request_manager.dart';
|
||||||
|
|
||||||
import 'schedule_complete_visit_page_widget.dart'
|
import 'schedule_complete_visit_page_widget.dart'
|
||||||
show ScheduleCompleteVisitPageWidget;
|
show ScheduleCompleteVisitPageWidget;
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -51,6 +54,23 @@ class ScheduleCompleteVisitPageModel
|
||||||
TextEditingController? textController3;
|
TextEditingController? textController3;
|
||||||
String? Function(BuildContext, String?)? textController3Validator;
|
String? Function(BuildContext, String?)? textController3Validator;
|
||||||
|
|
||||||
|
/// Query cache managers for this widget.
|
||||||
|
|
||||||
|
final _visitHistoryManager = FutureRequestManager<ApiCallResponse>();
|
||||||
|
Future<ApiCallResponse> visitHistory({
|
||||||
|
String? uniqueQueryKey,
|
||||||
|
bool? overrideCache,
|
||||||
|
required Future<ApiCallResponse> Function() requestFn,
|
||||||
|
}) =>
|
||||||
|
_visitHistoryManager.performRequest(
|
||||||
|
uniqueQueryKey: uniqueQueryKey,
|
||||||
|
overrideCache: overrideCache,
|
||||||
|
requestFn: requestFn,
|
||||||
|
);
|
||||||
|
void clearVisitHistoryCache() => _visitHistoryManager.clear();
|
||||||
|
void clearVisitHistoryCacheKey(String? uniqueKey) =>
|
||||||
|
_visitHistoryManager.clearRequest(uniqueKey);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState(BuildContext context) {}
|
void initState(BuildContext context) {}
|
||||||
|
|
||||||
|
@ -66,6 +86,10 @@ class ScheduleCompleteVisitPageModel
|
||||||
|
|
||||||
textFieldFocusNode3?.dispose();
|
textFieldFocusNode3?.dispose();
|
||||||
textController3?.dispose();
|
textController3?.dispose();
|
||||||
|
|
||||||
|
/// Dispose query cache managers for this widget.
|
||||||
|
|
||||||
|
clearVisitHistoryCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Action blocks.
|
/// Action blocks.
|
||||||
|
|
|
@ -2263,11 +2263,13 @@ class _ScheduleCompleteVisitPageWidgetState
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
FutureBuilder<ApiCallResponse>(
|
FutureBuilder<ApiCallResponse>(
|
||||||
future: PhpGroup.getVisitsCall.call(
|
future: _model.visitHistory(
|
||||||
devUUID: FFAppState().devUUID,
|
requestFn: () => PhpGroup.getVisitsCall.call(
|
||||||
userUUID: FFAppState().userUUID,
|
devUUID: FFAppState().devUUID,
|
||||||
cliID: FFAppState().cliUUID,
|
userUUID: FFAppState().userUUID,
|
||||||
atividade: 'getVisitas',
|
cliID: FFAppState().cliUUID,
|
||||||
|
atividade: 'getVisitas',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
// Customize what your widget looks like when it's loading.
|
// Customize what your widget looks like when it's loading.
|
||||||
|
|
Loading…
Reference in New Issue