You can create an OutlinedButton in Flutter by calling its constructor . There are two required parameters. First, you need to pass a Widget as child , usually a Text or an Icon widget. The other required parameter is onPressed , a callback to be called when the button is pressed.