You can make button disable by setting onPressed property null . If you set onPressed to null Flutter will added disabled related characteristic to button automatically. I have created a switch with a button and when you turn on switch the value of onPressed set to null.
Read moreWhat is IgnorePointer in Flutter?
IgnorePointer is a built-in widget in flutter which is similar to the AbsorbPointer widget, they both prevent their children’s widget from pointer-events which are taping, clicking, dragging, scrolling, and hover.
Read moreWhat is InkWell in Flutter?
InkWell class in Flutter is a rectangular area in Flutter of a material that responds to touch in an application . The InkWell widget must have a material widget as an ancestor. The material widget is where the ink reactions are actually performed.
Read more