control & disable a dropdown button in flutter?

Found this in the DropdownButton docs:

If items or onChanged is null, the button will be disabled, the down arrow will be grayed out, and the disabledHint will be shown (if provided)

DropdownButton(
  onChanged: null,
  items: [...],
)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)