This commit is contained in:
Mohamed Nouffer
2022-07-28 19:01:45 +05:30
parent 16cf0e1434
commit a4adf24e99
6 changed files with 53 additions and 17 deletions

View File

@ -157,12 +157,16 @@ class _PerfectureWidgetState extends State<PerfectureWidget> {
),
onChanged: (String? newValue) {
if (isNumeric(newValue!)){
widget.indexController.is_custom_area_selected.value = false;
}
else{
widget.indexController.loadCustomLocation(newValue);
widget.indexController.is_custom_area_selected.value = true;
widget.indexController.subPerfs.clear();
widget.indexController.cats.clear();
}
setState(() {
widget.indexController.locations.clear();
if(newValue != null){
widget.indexController.is_loading.value = true;
widget.indexController.areaDropdownValue = newValue;