What is the TextField widget?

Answer

TextField is the primary widget for accepting text input from the user. It is controlled by a TextEditingController, which lets you read the current text (controller.text), set text programmatically, and listen for changes. The decoration property (using InputDecoration) adds label, hint, prefix/suffix icons, and borders. Use keyboardType to specify the keyboard layout (email, phone, number, etc.).