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. See the code snippet given below. Following is the output….