You can create a Text Button in Flutter by calling its constructor . There are two required parameters. You have to pass a Widget as child , typically a Text or an Icon . The other required parameter is onPressed , a callback which is called when the button is pressed.
How do you TextButton in Flutter?
You can create a Text Button in Flutter by calling its constructor . There are two required parameters. You have to pass a Widget as child , typically a Text or an Icon . The other required parameter is onPressed , a callback which is called when the button is pressed.