How to Disable TextField in Flutter
Even though rare, you may want to disable your TextInput widget in some scenarios. In this Flutter tutorial, let’s check how to disable TextField. Disabling TextField is very easy. TextField has a property named enabled. Just make the enabled prop false to disable the TextField. Following is the complete example. Following is the output. That’s …