Home > front end >  Hide the bottom line and change the style of the selected element Drowdown_button2
Hide the bottom line and change the style of the selected element Drowdown_button2

Time:05-05

I need your help. I'm using dropdown_button2 from enter image description here

should be the result

enter image description here

CodePudding user response:

  1. To change text style of the selected element use selectedItemBuilder. It's responsible for how the selected item will be displayed on button.

  2. The bottom line under the selected element is shown by the decoration parameter you're using in the main Container widget. Remove it and bottom line should be gone.

  • Related