fet: Alterações na Tela de Agendamento Provisorio
This commit is contained in:
parent
08a8538be5
commit
cee23db0e9
|
@ -44,8 +44,8 @@
|
|||
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>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
6436409727A31CDC00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
6436409027A31CD400820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
6436409627A31CDB00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
6436409827A31CDD00820AF7 /* 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>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
|
@ -225,8 +225,8 @@
|
|||
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
6436409727A31CDC00820AF7 /* pt */,
|
||||
6436409027A31CD400820AF7 /* en */,
|
||||
6436409627A31CDB00820AF7 /* pt */,
|
||||
6436409827A31CDD00820AF7 /* en */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
|
|
|
@ -125,7 +125,7 @@ Future singInLoginAction(
|
|||
(loginCall.jsonBody ?? ''),
|
||||
)!;
|
||||
FFAppState().createdAt = dateTimeFormat(
|
||||
'd/M/y H:mm:ss',
|
||||
"d/M/y H:mm:ss",
|
||||
getCurrentTimestamp,
|
||||
locale: FFLocalizations.of(context).languageCode,
|
||||
);
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
import '/backend/api_requests/api_calls.dart';
|
||||
import '/flutter_flow/flutter_flow_util.dart';
|
||||
import 'visit_request_template_component_widget.dart'
|
||||
show VisitRequestTemplateComponentWidget;
|
||||
import 'details_component_widget.dart' show DetailsComponentWidget;
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class VisitRequestTemplateComponentModel
|
||||
extends FlutterFlowModel<VisitRequestTemplateComponentWidget> {
|
||||
class DetailsComponentModel extends FlutterFlowModel<DetailsComponentWidget> {
|
||||
/// State fields for stateful widgets in this component.
|
||||
|
||||
// State field(s) for TextField widget.
|
|
@ -5,11 +5,11 @@ 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 'visit_request_template_component_model.dart';
|
||||
export 'visit_request_template_component_model.dart';
|
||||
import 'details_component_model.dart';
|
||||
export 'details_component_model.dart';
|
||||
|
||||
class VisitRequestTemplateComponentWidget extends StatefulWidget {
|
||||
const VisitRequestTemplateComponentWidget({
|
||||
class DetailsComponentWidget extends StatefulWidget {
|
||||
const DetailsComponentWidget({
|
||||
super.key,
|
||||
required this.vteName,
|
||||
required this.vteReason,
|
||||
|
@ -41,13 +41,11 @@ class VisitRequestTemplateComponentWidget extends StatefulWidget {
|
|||
final String? vawDate;
|
||||
|
||||
@override
|
||||
State<VisitRequestTemplateComponentWidget> createState() =>
|
||||
_VisitRequestTemplateComponentWidgetState();
|
||||
State<DetailsComponentWidget> createState() => _DetailsComponentWidgetState();
|
||||
}
|
||||
|
||||
class _VisitRequestTemplateComponentWidgetState
|
||||
extends State<VisitRequestTemplateComponentWidget> {
|
||||
late VisitRequestTemplateComponentModel _model;
|
||||
class _DetailsComponentWidgetState extends State<DetailsComponentWidget> {
|
||||
late DetailsComponentModel _model;
|
||||
|
||||
@override
|
||||
void setState(VoidCallback callback) {
|
||||
|
@ -58,7 +56,7 @@ class _VisitRequestTemplateComponentWidgetState
|
|||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_model = createModel(context, () => VisitRequestTemplateComponentModel());
|
||||
_model = createModel(context, () => DetailsComponentModel());
|
||||
|
||||
_model.textController1 ??= TextEditingController(text: widget.vteName);
|
||||
_model.textFieldFocusNode1 ??= FocusNode();
|
|
@ -17,7 +17,7 @@ class ForgotPasswordTemplateComponentModel
|
|||
BuildContext context, String? val) {
|
||||
if (val == null || val.isEmpty) {
|
||||
return FFLocalizations.of(context).getText(
|
||||
'3hqg8buh' /* E-mail é Obrigatório */,
|
||||
'snnmkbyc' /* E-mail é Obrigatório */,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -858,7 +858,7 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
|
|||
queryParameters: {
|
||||
'visitStartDateStr': serializeParam(
|
||||
dateTimeFormat(
|
||||
'd/M/y H:mm:ss',
|
||||
"d/M/y H:mm:ss",
|
||||
getCurrentTimestamp,
|
||||
locale: FFLocalizations.of(context)
|
||||
.languageCode,
|
||||
|
|
|
@ -320,46 +320,74 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
|||
},
|
||||
// scheduleProvisionalVisitPage
|
||||
{
|
||||
'x7at46ur': {
|
||||
'pt': 'Quais visitantes você deseja cadastrar?',
|
||||
'en': 'Which visitors do you want to register?',
|
||||
'uj8acuab': {
|
||||
'pt': 'Preencha os Campos Abaixo:',
|
||||
'en': 'Fill in the fields below:',
|
||||
},
|
||||
'shj19b2o': {
|
||||
'pt': 'Qual o período de validade da visita?',
|
||||
'en': 'Visit Validity Period',
|
||||
'8d3679lf': {
|
||||
'pt': 'Propriedade',
|
||||
'en': '',
|
||||
},
|
||||
'8zgsw5so': {
|
||||
'pt': 'Ínicio da Visita',
|
||||
'en': 'Start of the Visit',
|
||||
},
|
||||
'p16wm7kp': {
|
||||
'pt': 'Quando a visitas se inicia?',
|
||||
'en': 'When does the visit start?',
|
||||
},
|
||||
'3zfd7uf9': {
|
||||
'pt': 'Qual o nome do visitante?',
|
||||
'en': 'What is the visitor\'s name?',
|
||||
'z6aawgqa': {
|
||||
'pt': 'Dados da Visita',
|
||||
'en': 'Visit Data',
|
||||
},
|
||||
'wehvxbz4': {
|
||||
'pt': 'Nome do Visitante',
|
||||
'en': 'Visitor Name',
|
||||
'pt': 'Nome / Apelido do Visitante',
|
||||
'en': 'Visitor\'s Name / Nickname',
|
||||
},
|
||||
'juh7f24w': {
|
||||
'pt': 'Escreva o nome do visitante aqui',
|
||||
'en': 'Write the visitor\'s name here',
|
||||
'pt': '',
|
||||
'en': '',
|
||||
},
|
||||
'jhss056s': {
|
||||
'pt': 'Você tem alguma observação sobre está visita?',
|
||||
'en': 'Do you have any observations about this visit?',
|
||||
'8zgsw5so': {
|
||||
'pt': 'Data / Hora Limite da Visita',
|
||||
'en': 'Visit Limit Date / Time',
|
||||
},
|
||||
'p16wm7kp': {
|
||||
'pt': '',
|
||||
'en': '',
|
||||
},
|
||||
'cw8b3tbb': {
|
||||
'pt': 'Observações da Visita',
|
||||
'en': 'Visit Observations',
|
||||
'pt': 'Observação da Visita',
|
||||
'en': 'Notes Visit',
|
||||
},
|
||||
'k4qkbv1f': {
|
||||
'pt': 'Escreva as suas observações aqui',
|
||||
'pt': '',
|
||||
'en': 'Write your observations here',
|
||||
},
|
||||
'bv5fg9sv': {
|
||||
'pt': 'Enviar',
|
||||
'en': 'Send',
|
||||
},
|
||||
'3hqg8buh': {
|
||||
'pt': 'Nome é Obrigatório',
|
||||
'en': 'Name is Required',
|
||||
},
|
||||
'l0b0zr50': {
|
||||
'pt': 'Máximo 80 caracteres',
|
||||
'en': 'Maximum 80 characters',
|
||||
},
|
||||
'1p76vmkn': {
|
||||
'pt': 'Please choose an option from the dropdown',
|
||||
'en': '',
|
||||
},
|
||||
'uzefkuf9': {
|
||||
'pt': 'Data / Hora é Obrigatório',
|
||||
'en': 'Date / Time is Required',
|
||||
},
|
||||
'sn6pj4tx': {
|
||||
'pt': 'Please choose an option from the dropdown',
|
||||
'en': '',
|
||||
},
|
||||
'j14it3wp': {
|
||||
'pt': 'Field is required',
|
||||
'en': '',
|
||||
},
|
||||
'ypo6pxie': {
|
||||
'pt': 'Please choose an option from the dropdown',
|
||||
'en': '',
|
||||
},
|
||||
'cifgwfxs': {
|
||||
'pt': 'Agendamento Provisório',
|
||||
'en': 'Provisional Scheduling',
|
||||
|
@ -1017,15 +1045,15 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
|||
'pt': '',
|
||||
'en': '',
|
||||
},
|
||||
'3hqg8buh': {
|
||||
'snnmkbyc': {
|
||||
'pt': 'E-mail é Obrigatório',
|
||||
'en': '',
|
||||
'en': 'Name is Required',
|
||||
},
|
||||
'jh5r2b1w': {
|
||||
'pt': 'E-mail Inválido',
|
||||
'en': '',
|
||||
},
|
||||
'1p76vmkn': {
|
||||
'ph22karc': {
|
||||
'pt': 'Please choose an option from the dropdown',
|
||||
'en': '',
|
||||
},
|
||||
|
@ -1034,7 +1062,7 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
|||
'en': 'Send',
|
||||
},
|
||||
},
|
||||
// visitRequestTemplateComponent
|
||||
// detailsComponent
|
||||
{
|
||||
'ivfw4j04': {
|
||||
'pt': 'Nome',
|
||||
|
|
|
@ -11,10 +11,6 @@ class AcessHistoryPageModel extends FlutterFlowModel<AcessHistoryPageWidget> {
|
|||
|
||||
String pesType = 'T';
|
||||
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
|
||||
/// Query cache managers for this widget.
|
||||
|
||||
final _accessHistoryManager = FutureRequestManager<ApiCallResponse>();
|
||||
|
@ -37,8 +33,6 @@ class AcessHistoryPageModel extends FlutterFlowModel<AcessHistoryPageWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
|
||||
/// Dispose query cache managers for this widget.
|
||||
|
||||
clearAccessHistoryCache();
|
||||
|
@ -53,9 +47,7 @@ class AcessHistoryPageModel extends FlutterFlowModel<AcessHistoryPageWidget> {
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding: MediaQuery.viewInsetsOf(context),
|
||||
child: OptModalWidget(
|
||||
|
|
|
@ -41,9 +41,7 @@ class _AcessHistoryPageWidgetState extends State<AcessHistoryPageWidget> {
|
|||
context.watch<FFAppState>();
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
@ -114,10 +112,7 @@ class _AcessHistoryPageWidgetState extends State<AcessHistoryPageWidget> {
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context)
|
||||
.requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding: MediaQuery.viewInsetsOf(context),
|
||||
child: OptModalWidget(
|
||||
|
|
|
@ -12,7 +12,6 @@ class HomePageModel extends FlutterFlowModel<HomePageWidget> {
|
|||
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
// State field(s) for TextField widget.
|
||||
FocusNode? textFieldFocusNode;
|
||||
TextEditingController? textController;
|
||||
|
@ -35,7 +34,6 @@ class HomePageModel extends FlutterFlowModel<HomePageWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
textFieldFocusNode?.dispose();
|
||||
textController?.dispose();
|
||||
|
||||
|
|
|
@ -40,9 +40,7 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding: MediaQuery.viewInsetsOf(context),
|
||||
child: const BottomArrowLinkedLocalsComponentWidget(),
|
||||
|
@ -71,9 +69,7 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
|||
context.watch<FFAppState>();
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).secondaryBackground,
|
||||
|
|
|
@ -8,7 +8,6 @@ import 'package:flutter/material.dart';
|
|||
class LiberationHistoryModel extends FlutterFlowModel<LiberationHistoryWidget> {
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
// State field(s) for TextField widget.
|
||||
FocusNode? textFieldFocusNode;
|
||||
TextEditingController? textController;
|
||||
|
@ -36,7 +35,6 @@ class LiberationHistoryModel extends FlutterFlowModel<LiberationHistoryWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
textFieldFocusNode?.dispose();
|
||||
textController?.dispose();
|
||||
|
||||
|
|
|
@ -45,9 +45,7 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
|||
context.watch<FFAppState>();
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
|
|
@ -5,15 +5,9 @@ import 'package:flutter/material.dart';
|
|||
|
||||
class PeopleOnThePropertyPageModel
|
||||
extends FlutterFlowModel<PeopleOnThePropertyPageWidget> {
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
|
||||
@override
|
||||
void initState(BuildContext context) {}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
}
|
||||
void dispose() {}
|
||||
}
|
||||
|
|
|
@ -42,9 +42,7 @@ class _PeopleOnThePropertyPageWidgetState
|
|||
context.watch<FFAppState>();
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
|
|
@ -12,17 +12,11 @@ class QrCodePageModel extends FlutterFlowModel<QrCodePageWidget> {
|
|||
|
||||
DateTime? time;
|
||||
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
|
||||
@override
|
||||
void initState(BuildContext context) {}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
}
|
||||
void dispose() {}
|
||||
|
||||
/// Action blocks.
|
||||
Future qrCodeEncoder(
|
||||
|
|
|
@ -76,9 +76,7 @@ class _QrCodePageWidgetState extends State<QrCodePageWidget>
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
@ -187,11 +185,8 @@ class _QrCodePageWidgetState extends State<QrCodePageWidget>
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context)
|
||||
.requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () =>
|
||||
FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding:
|
||||
MediaQuery.viewInsetsOf(context),
|
||||
|
|
|
@ -8,7 +8,6 @@ class RegisterVisitorPageModel
|
|||
extends FlutterFlowModel<RegisterVisitorPageWidget> {
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
bool isDataUploading = false;
|
||||
FFUploadedFile uploadedLocalFile =
|
||||
FFUploadedFile(bytes: Uint8List.fromList([]));
|
||||
|
@ -42,7 +41,6 @@ class RegisterVisitorPageModel
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
textFieldFocusNode1?.dispose();
|
||||
textController1?.dispose();
|
||||
|
||||
|
|
|
@ -57,9 +57,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
|||
context.watch<FFAppState>();
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
@ -794,11 +792,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context)
|
||||
.requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () =>
|
||||
FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding:
|
||||
MediaQuery.viewInsetsOf(context),
|
||||
|
@ -822,11 +817,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context)
|
||||
.requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () =>
|
||||
FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding: MediaQuery.viewInsetsOf(context),
|
||||
child: ThrowExceptionWidget(
|
||||
|
|
|
@ -25,7 +25,6 @@ class ScheduleCompleteVisitPageModel
|
|||
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
// State field(s) for TabBar widget.
|
||||
TabController? tabBarController;
|
||||
int get tabBarCurrentIndex =>
|
||||
|
@ -76,7 +75,6 @@ class ScheduleCompleteVisitPageModel
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
tabBarController?.dispose();
|
||||
textFieldFocusNode1?.dispose();
|
||||
textController1?.dispose();
|
||||
|
|
|
@ -110,9 +110,7 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
context.watch<FFAppState>();
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
@ -294,15 +292,8 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode
|
||||
.canRequestFocus
|
||||
? FocusScope.of(
|
||||
context)
|
||||
.requestFocus(
|
||||
_model
|
||||
.unfocusNode)
|
||||
: FocusScope.of(
|
||||
onTap: () =>
|
||||
FocusScope.of(
|
||||
context)
|
||||
.unfocus(),
|
||||
child: Padding(
|
||||
|
@ -449,15 +440,8 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode
|
||||
.canRequestFocus
|
||||
? FocusScope.of(
|
||||
context)
|
||||
.requestFocus(
|
||||
_model
|
||||
.unfocusNode)
|
||||
: FocusScope.of(
|
||||
onTap: () =>
|
||||
FocusScope.of(
|
||||
context)
|
||||
.unfocus(),
|
||||
child: Padding(
|
||||
|
@ -965,7 +949,7 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
_model.textController1
|
||||
?.text =
|
||||
dateTimeFormat(
|
||||
'd/M/y H:mm:ss',
|
||||
"d/M/y H:mm:ss",
|
||||
_model
|
||||
.datePicked1,
|
||||
locale: FFLocalizations.of(
|
||||
|
@ -1320,7 +1304,7 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
_model.textController2
|
||||
?.text =
|
||||
dateTimeFormat(
|
||||
'd/M/y H:mm:ss',
|
||||
"d/M/y H:mm:ss",
|
||||
_model
|
||||
.datePicked2,
|
||||
locale: FFLocalizations.of(
|
||||
|
@ -2001,11 +1985,8 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context)
|
||||
.requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () =>
|
||||
FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding:
|
||||
MediaQuery.viewInsetsOf(context),
|
||||
|
@ -2041,11 +2022,8 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context)
|
||||
.requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () =>
|
||||
FocusScope.of(context).unfocus(),
|
||||
child: Padding(
|
||||
padding:
|
||||
MediaQuery.viewInsetsOf(context),
|
||||
|
@ -2174,13 +2152,8 @@ class _ScheduleCompleteVisitPageWidgetState
|
|||
context: context,
|
||||
builder: (context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model
|
||||
.unfocusNode
|
||||
.canRequestFocus
|
||||
? FocusScope.of(context)
|
||||
.requestFocus(_model
|
||||
.unfocusNode)
|
||||
: FocusScope.of(context)
|
||||
onTap: () =>
|
||||
FocusScope.of(context)
|
||||
.unfocus(),
|
||||
child: Padding(
|
||||
padding:
|
||||
|
|
|
@ -29,36 +29,76 @@ class ScheduleProvisionalVisitPageModel
|
|||
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
// State field(s) for TextField widget.
|
||||
FocusNode? textFieldFocusNode1;
|
||||
TextEditingController? textController1;
|
||||
String? Function(BuildContext, String?)? textController1Validator;
|
||||
final formKey = GlobalKey<FormState>();
|
||||
// State field(s) for personName widget.
|
||||
FocusNode? personNameFocusNode;
|
||||
TextEditingController? personNameTextController;
|
||||
String? Function(BuildContext, String?)? personNameTextControllerValidator;
|
||||
String? _personNameTextControllerValidator(
|
||||
BuildContext context, String? val) {
|
||||
if (val == null || val.isEmpty) {
|
||||
return FFLocalizations.of(context).getText(
|
||||
'3hqg8buh' /* Nome é Obrigatório */,
|
||||
);
|
||||
}
|
||||
|
||||
if (val.length > 80) {
|
||||
return FFLocalizations.of(context).getText(
|
||||
'l0b0zr50' /* Máximo 80 caracteres */,
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// State field(s) for dateTime widget.
|
||||
FocusNode? dateTimeFocusNode;
|
||||
TextEditingController? dateTimeTextController;
|
||||
String? Function(BuildContext, String?)? dateTimeTextControllerValidator;
|
||||
String? _dateTimeTextControllerValidator(BuildContext context, String? val) {
|
||||
if (val == null || val.isEmpty) {
|
||||
return FFLocalizations.of(context).getText(
|
||||
'uzefkuf9' /* Data / Hora é Obrigatório */,
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
DateTime? datePicked;
|
||||
// State field(s) for TextField widget.
|
||||
FocusNode? textFieldFocusNode2;
|
||||
TextEditingController? textController2;
|
||||
String? Function(BuildContext, String?)? textController2Validator;
|
||||
// State field(s) for TextField widget.
|
||||
FocusNode? textFieldFocusNode3;
|
||||
TextEditingController? textController3;
|
||||
String? Function(BuildContext, String?)? textController3Validator;
|
||||
// Stores action output result for [Backend Call - API (postProvVisitScheduling)] action in sendContainer widget.
|
||||
ApiCallResponse? provisionalVisitScheduling;
|
||||
// State field(s) for notes widget.
|
||||
FocusNode? notesFocusNode;
|
||||
TextEditingController? notesTextController;
|
||||
String? Function(BuildContext, String?)? notesTextControllerValidator;
|
||||
String? _notesTextControllerValidator(BuildContext context, String? val) {
|
||||
if (val == null || val.isEmpty) {
|
||||
return FFLocalizations.of(context).getText(
|
||||
'j14it3wp' /* Field is required */,
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// Stores action output result for [Backend Call - API (postProvVisitScheduling)] action in btnSend widget.
|
||||
ApiCallResponse? provVisitSchedule;
|
||||
|
||||
@override
|
||||
void initState(BuildContext context) {}
|
||||
void initState(BuildContext context) {
|
||||
personNameTextControllerValidator = _personNameTextControllerValidator;
|
||||
dateTimeTextControllerValidator = _dateTimeTextControllerValidator;
|
||||
notesTextControllerValidator = _notesTextControllerValidator;
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
textFieldFocusNode1?.dispose();
|
||||
textController1?.dispose();
|
||||
personNameFocusNode?.dispose();
|
||||
personNameTextController?.dispose();
|
||||
|
||||
textFieldFocusNode2?.dispose();
|
||||
textController2?.dispose();
|
||||
dateTimeFocusNode?.dispose();
|
||||
dateTimeTextController?.dispose();
|
||||
|
||||
textFieldFocusNode3?.dispose();
|
||||
textController3?.dispose();
|
||||
notesFocusNode?.dispose();
|
||||
notesTextController?.dispose();
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -6,7 +6,6 @@ import 'package:flutter/material.dart';
|
|||
class SignInPageModel extends FlutterFlowModel<SignInPageWidget> {
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
// Model for signInTemplateComponent component.
|
||||
late SignInTemplateComponentModel signInTemplateComponentModel;
|
||||
|
||||
|
@ -18,7 +17,6 @@ class SignInPageModel extends FlutterFlowModel<SignInPageWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
signInTemplateComponentModel.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,9 +34,7 @@ class _SignInPageWidgetState extends State<SignInPageWidget> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
|
|
@ -6,7 +6,6 @@ import 'package:flutter/material.dart';
|
|||
class SignUpPageModel extends FlutterFlowModel<SignUpPageWidget> {
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
// Model for signUpTemplateComponent component.
|
||||
late SignUpTemplateComponentModel signUpTemplateComponentModel;
|
||||
|
||||
|
@ -18,7 +17,6 @@ class SignUpPageModel extends FlutterFlowModel<SignUpPageWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
signUpTemplateComponentModel.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,9 +34,7 @@ class _SignUpPageWidgetState extends State<SignUpPageWidget> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
|
|
@ -10,7 +10,6 @@ class WelcomePageModel extends FlutterFlowModel<WelcomePageWidget> {
|
|||
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
// Model for welcomeTemplateComponent component.
|
||||
late WelcomeTemplateComponentModel welcomeTemplateComponentModel;
|
||||
|
||||
|
@ -22,7 +21,6 @@ class WelcomePageModel extends FlutterFlowModel<WelcomePageWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
welcomeTemplateComponentModel.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,9 +52,7 @@ class _WelcomePageWidgetState extends State<WelcomePageWidget> {
|
|||
context.watch<FFAppState>();
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
|
|
Loading…
Reference in New Issue