This commit is contained in:
jantunesmesias 2024-08-13 11:19:27 -03:00
parent 60647a708d
commit 5a67d5d3f9
1 changed files with 24 additions and 17 deletions

View File

@ -1109,7 +1109,7 @@ Widget scheduleVisit(BuildContext context,
PhpGroup.getDadosCall.reasonsJsonList( PhpGroup.getDadosCall.reasonsJsonList(
dropDownGetDadosResponse.jsonBody, dropDownGetDadosResponse.jsonBody,
); );
// Algoritmo de match // Algoritmo de match // PODE MANDAR DE VASCO
if (_model.dropDownValue1 != null && if (_model.dropDownValue1 != null &&
_model.dropDownValue1!.isNotEmpty) { _model.dropDownValue1!.isNotEmpty) {
final matchedValue = final matchedValue =
@ -1597,24 +1597,14 @@ Widget scheduleVisit(BuildContext context,
child: Dialog( child: Dialog(
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
child: SizedBox( child: SizedBox(
// width: MediaQuery.of(context).size.width,
// height: MediaQuery.of(context).size.height * 0.7,
// child: VisitDetailsModalTemplateComponentWidget(
// visitStartDateStr: _model.textController1.text,
// visitEndDateStr: _model.textController2.text,
// visitReasonStr: _model.dropDownValue1,
// visitLevelStr: _model.dropDownValue2,
// visitTempStr:
// _model.switchValue == true ? 'Sim' : 'Não',
// visitObsStr: _model.textController3.text,
// visitorStrList: _model.visitorStrList,
// visitorJsonList: _model.visitorJsonList,
// updateToggleIdx: () async {},
// repeatVisitSchedule: () async {},
// ),
child: VisitRequestTemplateComponentWidget( child: VisitRequestTemplateComponentWidget(
buttons: [ buttons: [
FlutterFlowIconButton( FFButtonWidget(
text: FFLocalizations.of(context)
.getVariableText(
enText: 'Done',
ptText: 'Confirmar',
),
icon: const Icon(Icons.done), icon: const Icon(Icons.done),
onPressed: () async { onPressed: () async {
log('visitorStrList ${_model.visitorStrList}'); log('visitorStrList ${_model.visitorStrList}');
@ -1685,6 +1675,23 @@ Widget scheduleVisit(BuildContext context,
safeSetState(() {}); safeSetState(() {});
}); });
}, },
options: FFButtonOptions(
width: 130,
height: 40,
color: FlutterFlowTheme.of(context)
.primaryBackground,
elevation: 0,
textStyle: TextStyle(
color: FlutterFlowTheme.of(context)
.primaryText,
),
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.primaryBackground,
width: 1,
),
// borderRadius: 12,
),
), ),
], ],
imagePath: imagePath: