Flutter Dropdown Container/Widget

Issue

I have spent hours googling something that should be incredibly simple, but have found nothing to this sort on the internet. Effectively, I want to make a dropdown, so that when a button is clicked, I have a menu dropdown. However, I do not wish to have this dropdown be a list of items. I want the dropdown to be able to take in a child widget, similar to the showDialog function, and I can pass what I wish to the child widget.

Eg., I wish to merge dropdown’s positioning with dialog ability to not only render an opinionated list.

Does anyone have any clue how to accomplish this?

Solution

You can use flutter_portal. I used this package to build many types of dropdowns.
enter image description here

Answered By – maempaa

Answer Checked By – Timothy Miller (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *