Answers for "flutter textformfield clear input"

3

flutter disable text form field

TextFormField(
      enabled: false, //Not clickable and not editable
      readOnly: true, //Clickable and not editable
)
Posted by: Guest on December-15-2020
1

flutter clear all text in textfield

TextField(
  controller: _controller,
  decoration: InputDecoration(
    hintText: "Enter a message",
    suffixIcon: IconButton(
      onPressed: () => _controller.clear(),
      icon: Icon(Icons.clear),
    ),
  ),
)
Posted by: Guest on July-01-2020

Code answers related to "flutter textformfield clear input"

Browse Popular Code Answers by Language