Flutter - Enabling and Disabling the Button

preview_player
Показать описание
In this episode I cover enabling or disabling the button.

This episode covers:
- Toggle the button enabled state
- Change the buttons onPressed function
Рекомендации по теме
Комментарии
Автор

I think this is the best way to dynamically enable and disable a button in Flutter, even combined with other widgets like radio buttons. I spent hours on this with setState and shared preference and didn't work well...this one really helped, Thank you!

kirakk
Автор

Hi, thanks for the tutorial.
I have a question, I'm very new I need help how can I combine this blue button on/off with firebase/onesignal notification to enable/disable

uxell
Автор

why my button always disable, or how write code without SwitchListTile and set button enable

maingame
Автор

Good language, but nothing very visual makes it very difficult. I only see code and more code, you can not drag the components to the screen as is done in Delphi.

mikelustosa