On a form users complete on our app, there is a section where I would like the user to select a location(s) specific to our country. The value chosen by the user will be used to match them with other users who have the same location requirements. Ideally, I would like to have a dropdown widget with nested options (a user can select a region of our country, or open it up to select a more specific location within that region), but I haven't been able to get it to work.
The main reason I want the location values in a dropdown with nested options is for the UX as our country is small and a dropdown of location options would make things a lot cleaner and simpler for the user. The location options are small enough for a dropdown, but too many for something like a list of checkboxes
Yes, I ultimately could use the PlacePicker widget with Flutterflow, but I find it clunky and not user-friendly for this purpose as it is not easy to limit the location parameters (that I can figure out) and there is not a lot of flexibility with the aesthetics
I have tried creating a custom widget using either a JSON file or populating Flutterflow's existing dropdown with an API call - the API didn't fulfill the purpose of nesting the options (that I could figure out) and the custom widget I can't get coded correctly given Flutterflow's conditions on how to code custom widgets
I have tried using packages that have the nested dropdown features built in, but can't seem to get the code to be accepted by Flutterflow's conditions for custom widgets
I am fairly new to the world of coding and am learning as I go so I apologise if this doesn't make sense or seems like a really basic question. I have been leaning heavily on AI support for this particular issue, but every suggestion that comes back to me keeps returning with an error - not because the code is necessarily wrong, but because it doesn't compute with Flutterflow's limitations.
I am happy to share snippets of code if needed, but I feel like I keep going in circles so it would be helpful to have some direction from someone who has already built a dropdown widget like this before.
I am also completely open to suggestions on how to collect location preferences from user's that is limited to a specific area of the world that might be easier than a dropdown.