I have created a DropdownButton with two DropdownItems (share and edit). Whenever I select a DropdownItem (for example edit as you can see in pic 2), the selected item's value gets displayed (pic 2). I don't this to happen. I just want to display the icon (in my case the info icon) even when a DropdownItem is selected).
I tried various things like setting isDense to true or wrapping the DropdownButton with a SizedBox and setting some width but nothing worked.


I just used a popupmenubutton.