fix: Layout and Validation Visita Prov
This commit is contained in:
parent
3862671e82
commit
07f8dfe1e6
|
@ -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>"; };
|
||||||
6436409727A31CD700820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409327A31CD900820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
6436409927A31CD900820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409027A31CD700820AF7 /* 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 = (
|
||||||
6436409727A31CD700820AF7 /* pt */,
|
6436409327A31CD900820AF7 /* pt */,
|
||||||
6436409927A31CD900820AF7 /* en */,
|
6436409027A31CD700820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -767,20 +767,22 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Column(
|
Padding(
|
||||||
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
0.0, 10.0, 0.0, 0.0),
|
||||||
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment:
|
alignment:
|
||||||
const AlignmentDirectional(0.0, 0.0),
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 80.0,
|
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
alignment:
|
alignment:
|
||||||
const AlignmentDirectional(0.0, 0.0),
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment:
|
alignment: const AlignmentDirectional(
|
||||||
const AlignmentDirectional(0.0, 0.0),
|
0.0, 0.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsetsDirectional
|
padding: const EdgeInsetsDirectional
|
||||||
.fromSTEB(
|
.fromSTEB(
|
||||||
|
@ -804,95 +806,91 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
.getText(
|
.getText(
|
||||||
'cw8b3tbb' /* Observação da Visita */,
|
'cw8b3tbb' /* Observação da Visita */,
|
||||||
),
|
),
|
||||||
labelStyle: FlutterFlowTheme
|
labelStyle:
|
||||||
.of(context)
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
.override(
|
.override(
|
||||||
fontFamily:
|
fontFamily: FlutterFlowTheme.of(
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
color: FlutterFlowTheme
|
color: FlutterFlowTheme.of(
|
||||||
.of(context)
|
context)
|
||||||
.primaryText,
|
.primaryText,
|
||||||
letterSpacing: 0.0,
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
.asMap()
|
.asMap()
|
||||||
.containsKey(
|
.containsKey(
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(context)
|
||||||
context)
|
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle:
|
||||||
.of(context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
|
.labelMedium
|
||||||
|
.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
.labelMediumFamily,
|
.labelMediumFamily,
|
||||||
color: FlutterFlowTheme
|
color: FlutterFlowTheme.of(
|
||||||
.of(context)
|
context)
|
||||||
.primaryText,
|
.primaryText,
|
||||||
letterSpacing: 0.0,
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
.asMap()
|
.asMap()
|
||||||
.containsKey(
|
.containsKey(
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(context)
|
||||||
context)
|
|
||||||
.labelMediumFamily),
|
.labelMediumFamily),
|
||||||
),
|
),
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.customColor5,
|
.customColor5,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius
|
||||||
10.0),
|
.circular(10.0),
|
||||||
),
|
),
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.primary,
|
.primary,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius
|
||||||
10.0),
|
.circular(10.0),
|
||||||
),
|
),
|
||||||
errorBorder:
|
errorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.error,
|
.error,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius
|
||||||
10.0),
|
.circular(10.0),
|
||||||
),
|
),
|
||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.error,
|
.error,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius
|
||||||
10.0),
|
.circular(10.0),
|
||||||
),
|
),
|
||||||
suffixIcon: Icon(
|
suffixIcon: Icon(
|
||||||
Icons.text_fields,
|
Icons.text_fields,
|
||||||
|
@ -910,9 +908,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
color:
|
color: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.primaryText,
|
.primaryText,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
|
@ -923,7 +920,7 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.start,
|
textAlign: TextAlign.start,
|
||||||
maxLines: 5,
|
maxLines: 3,
|
||||||
maxLength: 100,
|
maxLength: 100,
|
||||||
maxLengthEnforcement:
|
maxLengthEnforcement:
|
||||||
MaxLengthEnforcement
|
MaxLengthEnforcement
|
||||||
|
@ -939,12 +936,18 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
FFButtonWidget(
|
FFButtonWidget(
|
||||||
onPressed: () async {
|
onPressed: ((_model.personNameTextController.text ==
|
||||||
|
'') ||
|
||||||
|
(_model.dateTimeTextController.text ==
|
||||||
|
''))
|
||||||
|
? null
|
||||||
|
: () async {
|
||||||
_model.provVisitSchedule = await PhpGroup
|
_model.provVisitSchedule = await PhpGroup
|
||||||
.postProvVisitSchedulingCall
|
.postProvVisitSchedulingCall
|
||||||
.call(
|
.call(
|
||||||
|
@ -954,17 +957,21 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
atividade: 'putAgendamentoProv',
|
atividade: 'putAgendamentoProv',
|
||||||
data: _model.dateTimeTextController.text,
|
data: _model.dateTimeTextController.text,
|
||||||
motivo: _model.notesTextController.text,
|
motivo: _model.notesTextController.text,
|
||||||
nome: _model.personNameTextController.text,
|
nome:
|
||||||
|
_model.personNameTextController.text,
|
||||||
proID: FFAppState().ownerUUID,
|
proID: FFAppState().ownerUUID,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (PhpGroup.postProvVisitSchedulingCall.error(
|
if (PhpGroup.postProvVisitSchedulingCall
|
||||||
(_model.provVisitSchedule?.jsonBody ?? ''),
|
.error(
|
||||||
|
(_model.provVisitSchedule?.jsonBody ??
|
||||||
|
''),
|
||||||
) ==
|
) ==
|
||||||
false) {
|
false) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_model.dateTimeTextController?.clear();
|
_model.dateTimeTextController?.clear();
|
||||||
_model.personNameTextController?.clear();
|
_model.personNameTextController
|
||||||
|
?.clear();
|
||||||
_model.notesTextController?.clear();
|
_model.notesTextController?.clear();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -975,11 +982,11 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () =>
|
onTap: () => FocusScope.of(context)
|
||||||
FocusScope.of(context).unfocus(),
|
.unfocus(),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding: MediaQuery.viewInsetsOf(
|
||||||
MediaQuery.viewInsetsOf(context),
|
context),
|
||||||
child: ThrowExceptionWidget(
|
child: ThrowExceptionWidget(
|
||||||
msg: PhpGroup
|
msg: PhpGroup
|
||||||
.postProvVisitSchedulingCall
|
.postProvVisitSchedulingCall
|
||||||
|
@ -1001,7 +1008,8 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
'bv5fg9sv' /* Enviar */,
|
'bv5fg9sv' /* Enviar */,
|
||||||
),
|
),
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
height: 40.0,
|
width: 150.0,
|
||||||
|
height: 50.0,
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
24.0, 0.0, 24.0, 0.0),
|
||||||
iconPadding: const EdgeInsetsDirectional.fromSTEB(
|
iconPadding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
@ -1025,6 +1033,9 @@ class _ScheduleProvisionalVisitPageWidgetState
|
||||||
width: 1.0,
|
width: 1.0,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(8.0),
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
|
disabledColor:
|
||||||
|
FlutterFlowTheme.of(context).customColor5,
|
||||||
|
disabledTextColor: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue