Answers for "after click botton clear input from text flutter"

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 "after click botton clear input from text flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language