This commit is contained in:
jantunesmesias 2024-08-12 14:11:56 -03:00
parent 092d122c3b
commit ccde7eb25e
1 changed files with 13 additions and 25 deletions

View File

@ -931,32 +931,20 @@ Widget scheduleVisit(
? FocusScope.of(context) ? FocusScope.of(context)
.requestFocus(_model.unfocusNode) .requestFocus(_model.unfocusNode)
: FocusScope.of(context).unfocus(), : FocusScope.of(context).unfocus(),
child: SizedBox(
height:
MediaQuery.of(context).size.height *
0.7,
width: MediaQuery.of(context).size.width,
child: Padding(
padding:
MediaQuery.viewInsetsOf(context),
child: child:
VisitorSearchModalTemplateComponentWidget( VisitorSearchModalTemplateComponentWidget(
getVisitors: (visitorsParam) async { getVisitors: (visitorsParam) async {
_model.visitorJsonList = _model.visitorJsonList = visitorsParam!
visitorsParam!
.toList() .toList()
.cast<dynamic>(); .cast<dynamic>();
setState(() {}); setState(() {});
}, },
getDocs: (docsParam) async { getDocs: (docsParam) async {
_model.visitorStrList = _model.visitorStrList =
strListToStr( strListToStr(docsParam!.toList());
docsParam!.toList());
setState(() {}); setState(() {});
}, },
), ),
),
),
); );
}, },
).then((value) => safeSetState(() {})); ).then((value) => safeSetState(() {}));