How do I disable a Button in Flutter?
I think you may want to introduce some helper functions to build your button as well as a Stateful widget along with some property to key off of. Use a StatefulWidget/State and create a variable to hold your condition (e.g. isButtonDisabled) Set this to true initially (if that’s what you desire) When rendering the button, … Read more