简体   繁体   中英

How to create dropdown widget in flutter

I am trying to make a dropdown widget that appears from the location of the clicked widget. I know there are a lot of solutions on the inte.net already regarding this, however, none of the ones I found serve my specific needs.

  1. Using dropdown packages: This does not work, as these widgets do not provide any way of customization. They are always just lists of items. What I want is a dropdown Container that I can fully customize.

  2. Using dialogs: It is tough to customize the location of these dialogs. I want it to appear right at the location of the clicked button/widget.

The white circle here is the widget that is supposed to be clicked on

This is what is supposed to appear after clicking the circle. As you can see here it is not placed correctly. The circle in the widget and the circle we click should be on top of each other. And the dropdown itself should be a container not a list of widgets like here as opposed to a dropdown list.

I believe this question should provide you with an answer.
If not, feel free to say so.
(The answer points to this package: flutter_portal )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM