Merge branch 'flutterflow' into fd-601
This commit is contained in:
commit
89f499717a
|
@ -51,8 +51,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>"; };
|
||||||
6436409627A31CDB00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409727A31CD700820AF7 /* 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>"; };
|
6436409927A31CD900820AF7 /* 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>"; };
|
||||||
C1B4A503715BC7B0F8826983 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
C1B4A503715BC7B0F8826983 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
@ -301,8 +301,8 @@
|
||||||
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
||||||
isa = PBXVariantGroup;
|
isa = PBXVariantGroup;
|
||||||
children = (
|
children = (
|
||||||
6436409627A31CDB00820AF7 /* pt */,
|
6436409727A31CD700820AF7 /* pt */,
|
||||||
6436409827A31CDD00820AF7 /* en */,
|
6436409927A31CD900820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -326,7 +326,7 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
},
|
},
|
||||||
'8d3679lf': {
|
'8d3679lf': {
|
||||||
'pt': 'Propriedade',
|
'pt': 'Propriedade',
|
||||||
'en': '',
|
'en': 'Property',
|
||||||
},
|
},
|
||||||
'z6aawgqa': {
|
'z6aawgqa': {
|
||||||
'pt': 'Dados da Visita',
|
'pt': 'Dados da Visita',
|
||||||
|
|
|
@ -73,16 +73,6 @@ class ScheduleProvisionalVisitPageModel
|
||||||
FocusNode? notesFocusNode;
|
FocusNode? notesFocusNode;
|
||||||
TextEditingController? notesTextController;
|
TextEditingController? notesTextController;
|
||||||
String? Function(BuildContext, String?)? notesTextControllerValidator;
|
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.
|
// Stores action output result for [Backend Call - API (postProvVisitScheduling)] action in btnSend widget.
|
||||||
ApiCallResponse? provVisitSchedule;
|
ApiCallResponse? provVisitSchedule;
|
||||||
|
|
||||||
|
@ -90,7 +80,6 @@ class ScheduleProvisionalVisitPageModel
|
||||||
void initState(BuildContext context) {
|
void initState(BuildContext context) {
|
||||||
personNameTextControllerValidator = _personNameTextControllerValidator;
|
personNameTextControllerValidator = _personNameTextControllerValidator;
|
||||||
dateTimeTextControllerValidator = _dateTimeTextControllerValidator;
|
dateTimeTextControllerValidator = _dateTimeTextControllerValidator;
|
||||||
notesTextControllerValidator = _notesTextControllerValidator;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -103,6 +103,7 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
Form(
|
Form(
|
||||||
key: _model.formKey,
|
key: _model.formKey,
|
||||||
autovalidateMode: AutovalidateMode.always,
|
autovalidateMode: AutovalidateMode.always,
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
|
@ -194,7 +195,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.only(
|
||||||
bottomLeft: Radius.circular(50.0),
|
bottomLeft: Radius.circular(50.0),
|
||||||
bottomRight: Radius.circular(50.0),
|
bottomRight:
|
||||||
|
Radius.circular(50.0),
|
||||||
topLeft: Radius.circular(50.0),
|
topLeft: Radius.circular(50.0),
|
||||||
topRight: Radius.circular(50.0),
|
topRight: Radius.circular(50.0),
|
||||||
),
|
),
|
||||||
|
@ -218,7 +220,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
15.0, 0.0, 0.0, 0.0),
|
15.0, 0.0, 0.0, 0.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
FFAppState().local,
|
FFAppState().local,
|
||||||
style: FlutterFlowTheme.of(context)
|
style:
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
.override(
|
.override(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
|
@ -248,7 +251,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment: const AlignmentDirectional(-1.0, 0.0),
|
alignment: const AlignmentDirectional(-1.0, 0.0),
|
||||||
|
@ -266,9 +270,11 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
FlutterFlowTheme.of(context)
|
FlutterFlowTheme.of(context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
.containsKey(
|
.containsKey(
|
||||||
FlutterFlowTheme.of(context)
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -280,15 +286,17 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
Container(
|
Container(
|
||||||
height: 80.0,
|
height: 80.0,
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
alignment:
|
||||||
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
padding:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
24.0, 0.0, 24.0, 0.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
controller:
|
controller: _model
|
||||||
_model.personNameTextController,
|
.personNameTextController,
|
||||||
focusNode:
|
focusNode:
|
||||||
_model.personNameFocusNode,
|
_model.personNameFocusNode,
|
||||||
onChanged: (_) =>
|
onChanged: (_) =>
|
||||||
|
@ -308,6 +316,25 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
.getText(
|
.getText(
|
||||||
'wehvxbz4' /* Nome / Apelido do Visitante */,
|
'wehvxbz4' /* Nome / Apelido do Visitante */,
|
||||||
),
|
),
|
||||||
|
labelStyle:
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
color: FlutterFlowTheme
|
||||||
|
.of(context)
|
||||||
|
.primaryText,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
hintStyle:
|
hintStyle:
|
||||||
FlutterFlowTheme.of(context)
|
FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
.labelMedium
|
||||||
|
@ -316,9 +343,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.labelMediumFamily,
|
.labelMediumFamily,
|
||||||
color:
|
color: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.primaryText,
|
.primaryText,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
|
@ -328,7 +354,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
context)
|
context)
|
||||||
.labelMediumFamily),
|
.labelMediumFamily),
|
||||||
),
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder:
|
||||||
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color: FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
|
@ -336,9 +363,11 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(10.0),
|
BorderRadius.circular(
|
||||||
|
10.0),
|
||||||
),
|
),
|
||||||
focusedBorder: OutlineInputBorder(
|
focusedBorder:
|
||||||
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color: FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
|
@ -346,7 +375,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(10.0),
|
BorderRadius.circular(
|
||||||
|
10.0),
|
||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
|
@ -356,7 +386,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(10.0),
|
BorderRadius.circular(
|
||||||
|
10.0),
|
||||||
),
|
),
|
||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
|
@ -367,23 +398,26 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(10.0),
|
BorderRadius.circular(
|
||||||
|
10.0),
|
||||||
),
|
),
|
||||||
suffixIcon: Icon(
|
suffixIcon: Icon(
|
||||||
Icons.person,
|
Icons.person,
|
||||||
color:
|
color: FlutterFlowTheme.of(
|
||||||
FlutterFlowTheme.of(context)
|
context)
|
||||||
.accent1,
|
.accent1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style:
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
.override(
|
.override(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
color: FlutterFlowTheme.of(
|
color:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.primaryText,
|
.primaryText,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
|
@ -416,12 +450,12 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
const AlignmentDirectional(0.0, 0.0),
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding: const EdgeInsetsDirectional
|
||||||
const EdgeInsetsDirectional.fromSTEB(
|
.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
24.0, 0.0, 24.0, 0.0),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
controller:
|
controller: _model
|
||||||
_model.dateTimeTextController,
|
.dateTimeTextController,
|
||||||
focusNode:
|
focusNode:
|
||||||
_model.dateTimeFocusNode,
|
_model.dateTimeFocusNode,
|
||||||
onChanged: (_) =>
|
onChanged: (_) =>
|
||||||
|
@ -434,15 +468,33 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: false,
|
isDense: false,
|
||||||
labelText:
|
labelText: FFLocalizations.of(
|
||||||
FFLocalizations.of(context)
|
context)
|
||||||
.getText(
|
.getText(
|
||||||
'8zgsw5so' /* Data / Hora Limite da Visita */,
|
'8zgsw5so' /* Data / Hora Limite da Visita */,
|
||||||
),
|
),
|
||||||
|
labelStyle:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.customColor5,
|
.customColor5,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
|
@ -454,7 +506,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.primary,
|
.primary,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
|
@ -463,9 +516,11 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
8.0),
|
8.0),
|
||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder:
|
||||||
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.error,
|
.error,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
|
@ -477,7 +532,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.error,
|
.error,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
|
@ -509,15 +565,15 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.start,
|
||||||
validator: _model
|
validator: _model
|
||||||
.dateTimeTextControllerValidator
|
.dateTimeTextControllerValidator
|
||||||
.asValidator(context),
|
.asValidator(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding: const EdgeInsetsDirectional
|
||||||
const EdgeInsetsDirectional.fromSTEB(
|
.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
24.0, 0.0, 24.0, 0.0),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
splashColor: Colors.transparent,
|
splashColor: Colors.transparent,
|
||||||
|
@ -537,71 +593,6 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
lastDate: DateTime(2050),
|
lastDate: DateTime(2050),
|
||||||
builder: (context, child) {
|
builder: (context, child) {
|
||||||
return wrapInMaterialDatePickerTheme(
|
return wrapInMaterialDatePickerTheme(
|
||||||
context,
|
|
||||||
child!,
|
|
||||||
headerBackgroundColor:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.primary,
|
|
||||||
headerForegroundColor:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.info,
|
|
||||||
headerTextStyle:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.headlineLarge
|
|
||||||
.override(
|
|
||||||
fontFamily: FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.headlineLargeFamily,
|
|
||||||
fontSize: 32.0,
|
|
||||||
letterSpacing:
|
|
||||||
0.0,
|
|
||||||
fontWeight:
|
|
||||||
FontWeight
|
|
||||||
.w600,
|
|
||||||
useGoogleFonts: GoogleFonts
|
|
||||||
.asMap()
|
|
||||||
.containsKey(
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.headlineLargeFamily),
|
|
||||||
),
|
|
||||||
pickerBackgroundColor:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.secondaryBackground,
|
|
||||||
pickerForegroundColor:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.primaryText,
|
|
||||||
selectedDateTimeBackgroundColor:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.primary,
|
|
||||||
selectedDateTimeForegroundColor:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.info,
|
|
||||||
actionButtonForegroundColor:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.primaryText,
|
|
||||||
iconSize: 24.0,
|
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
TimeOfDay? datePickedTime;
|
|
||||||
if (datePickedDate != null) {
|
|
||||||
datePickedTime =
|
|
||||||
await showTimePicker(
|
|
||||||
context: context,
|
|
||||||
initialTime:
|
|
||||||
TimeOfDay.fromDateTime(
|
|
||||||
getCurrentTimestamp),
|
|
||||||
builder: (context, child) {
|
|
||||||
return wrapInMaterialTimePickerTheme(
|
|
||||||
context,
|
context,
|
||||||
child!,
|
child!,
|
||||||
headerBackgroundColor:
|
headerBackgroundColor:
|
||||||
|
@ -657,6 +648,72 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
TimeOfDay? datePickedTime;
|
||||||
|
if (datePickedDate != null) {
|
||||||
|
datePickedTime =
|
||||||
|
await showTimePicker(
|
||||||
|
context: context,
|
||||||
|
initialTime: TimeOfDay
|
||||||
|
.fromDateTime(
|
||||||
|
getCurrentTimestamp),
|
||||||
|
builder:
|
||||||
|
(context, child) {
|
||||||
|
return wrapInMaterialTimePickerTheme(
|
||||||
|
context,
|
||||||
|
child!,
|
||||||
|
headerBackgroundColor:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.primary,
|
||||||
|
headerForegroundColor:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.info,
|
||||||
|
headerTextStyle:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.headlineLarge
|
||||||
|
.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.headlineLargeFamily,
|
||||||
|
fontSize:
|
||||||
|
32.0,
|
||||||
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
|
fontWeight:
|
||||||
|
FontWeight
|
||||||
|
.w600,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context).headlineLargeFamily),
|
||||||
|
),
|
||||||
|
pickerBackgroundColor:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.secondaryBackground,
|
||||||
|
pickerForegroundColor:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.primaryText,
|
||||||
|
selectedDateTimeBackgroundColor:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.primary,
|
||||||
|
selectedDateTimeForegroundColor:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.info,
|
||||||
|
actionButtonForegroundColor:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.primaryText,
|
||||||
|
iconSize: 24.0,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (datePickedDate != null &&
|
if (datePickedDate != null &&
|
||||||
|
@ -673,11 +730,13 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setState(() {
|
setState(() {
|
||||||
_model.dateTimeTextController
|
_model
|
||||||
|
.dateTimeTextController
|
||||||
?.text = dateTimeFormat(
|
?.text = dateTimeFormat(
|
||||||
"dd/MM/yyyy HH:mm:ss",
|
"dd/MM/yyyy HH:mm:ss",
|
||||||
_model.datePicked,
|
_model.datePicked,
|
||||||
locale: FFLocalizations.of(
|
locale:
|
||||||
|
FFLocalizations.of(
|
||||||
context)
|
context)
|
||||||
.languageCode,
|
.languageCode,
|
||||||
);
|
);
|
||||||
|
@ -698,7 +757,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
8.0),
|
8.0),
|
||||||
),
|
),
|
||||||
alignment: const AlignmentDirectional(
|
alignment:
|
||||||
|
const AlignmentDirectional(
|
||||||
0.0, 0.0),
|
0.0, 0.0),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -712,7 +772,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
alignment:
|
||||||
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 80.0,
|
height: 80.0,
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
|
@ -722,14 +783,14 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
alignment:
|
alignment:
|
||||||
const AlignmentDirectional(0.0, 0.0),
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding: const EdgeInsetsDirectional
|
||||||
const EdgeInsetsDirectional.fromSTEB(
|
.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
24.0, 0.0, 24.0, 0.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
controller:
|
controller: _model
|
||||||
_model.notesTextController,
|
.notesTextController,
|
||||||
focusNode:
|
focusNode:
|
||||||
_model.notesFocusNode,
|
_model.notesFocusNode,
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
|
@ -738,11 +799,31 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: false,
|
isDense: false,
|
||||||
labelText: FFLocalizations.of(
|
labelText:
|
||||||
|
FFLocalizations.of(
|
||||||
context)
|
context)
|
||||||
.getText(
|
.getText(
|
||||||
'cw8b3tbb' /* Observação da Visita */,
|
'cw8b3tbb' /* Observação da Visita */,
|
||||||
),
|
),
|
||||||
|
labelStyle: FlutterFlowTheme
|
||||||
|
.of(context)
|
||||||
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
color: FlutterFlowTheme
|
||||||
|
.of(context)
|
||||||
|
.primaryText,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: FlutterFlowTheme
|
||||||
.of(context)
|
.of(context)
|
||||||
.labelMedium
|
.labelMedium
|
||||||
|
@ -751,9 +832,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.labelMediumFamily,
|
.labelMediumFamily,
|
||||||
color:
|
color: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.primaryText,
|
.primaryText,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
|
@ -817,21 +897,23 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
),
|
),
|
||||||
suffixIcon: Icon(
|
suffixIcon: Icon(
|
||||||
Icons.text_fields,
|
Icons.text_fields,
|
||||||
color: FlutterFlowTheme.of(
|
color:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.accent1,
|
.accent1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style:
|
style: FlutterFlowTheme.of(
|
||||||
FlutterFlowTheme.of(context)
|
context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
.override(
|
.override(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
color: FlutterFlowTheme
|
color:
|
||||||
.of(context)
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
.primaryText,
|
.primaryText,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
|
@ -842,7 +924,7 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.start,
|
textAlign: TextAlign.start,
|
||||||
maxLines: null,
|
maxLines: 5,
|
||||||
maxLength: 100,
|
maxLength: 100,
|
||||||
maxLengthEnforcement:
|
maxLengthEnforcement:
|
||||||
MaxLengthEnforcement
|
MaxLengthEnforcement
|
||||||
|
@ -864,8 +946,9 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
),
|
),
|
||||||
FFButtonWidget(
|
FFButtonWidget(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
_model.provVisitSchedule =
|
_model.provVisitSchedule = await PhpGroup
|
||||||
await PhpGroup.postProvVisitSchedulingCall.call(
|
.postProvVisitSchedulingCall
|
||||||
|
.call(
|
||||||
devUUID: FFAppState().devUUID,
|
devUUID: FFAppState().devUUID,
|
||||||
userUUID: FFAppState().userUUID,
|
userUUID: FFAppState().userUUID,
|
||||||
cliID: FFAppState().cliUUID,
|
cliID: FFAppState().cliUUID,
|
||||||
|
@ -896,12 +979,14 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
onTap: () =>
|
onTap: () =>
|
||||||
FocusScope.of(context).unfocus(),
|
FocusScope.of(context).unfocus(),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: MediaQuery.viewInsetsOf(context),
|
padding:
|
||||||
|
MediaQuery.viewInsetsOf(context),
|
||||||
child: ThrowExceptionWidget(
|
child: ThrowExceptionWidget(
|
||||||
msg: PhpGroup
|
msg: PhpGroup
|
||||||
.postProvVisitSchedulingCall
|
.postProvVisitSchedulingCall
|
||||||
.msg(
|
.msg(
|
||||||
(_model.provVisitSchedule?.jsonBody ??
|
(_model.provVisitSchedule
|
||||||
|
?.jsonBody ??
|
||||||
''),
|
''),
|
||||||
)!,
|
)!,
|
||||||
),
|
),
|
||||||
|
@ -931,7 +1016,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
.containsKey(FlutterFlowTheme.of(context)
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
.titleSmallFamily),
|
.titleSmallFamily),
|
||||||
),
|
),
|
||||||
elevation: 3.0,
|
elevation: 3.0,
|
||||||
|
@ -945,6 +1031,7 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue