Answers for "flutter clear all text in textfield"

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 clear all text in textfield"

Code answers related to "Dart"

Browse Popular Code Answers by Language