skip to Main Content

I would like the dropdownMenuEntries of the DropdownMenu to be part of the same entity, not separated:

Actual resutls:

enter image description here

Desired results:

enter image description here

2

Answers


  1. Hope this can help you :

    CustomDropdown<String>(
      hintText: _list[0],
      items: _list,
      initialItem: _list[0],
      onChanged: (value) {
        log('changing value to: $value');
      },
    );
    

    From this package.

    Login or Signup to reply.
  2. When I want to get this result I usually create a boolean variable to check if the dropdown is open or not and change the borderbox based on that.

    if(dropdown is open) -> bottomleft and bottomright not circular

    else -> all borders circular.

    You can add multiple styles based on the dropdown being open or close with this system.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search