Answers for "How to add icon in textbutton in flutter"

4

flutter button with icon and text

ElevatedButton.icon(
              icon: Icon(Icons.home), 
              label: Text('ElevatedButton'),
              onPressed: () {},
            ),
Posted by: Guest on August-24-2021
1

flutter textfield with icon onclick

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 "How to add icon in textbutton in flutter"

Browse Popular Code Answers by Language