textbutton in flutter code example

Example 1: flutter text button

TextButton(
  onPressed: () {
      // Respond to button press
  },
  child: Text("TEXT BUTTON"),
)

Example 2: TextButton Style in flutter

TextButton(    child: Text('Woolha.com'),    style: TextButton.styleFrom(      primary: Colors.teal,    ),    onPressed: () {      print('Pressed');    },  )

Example 3: text button flutter

TextButton.icon({
  Key key, 
  @required VoidCallback onPressed, 
  VoidCallback onLongPress, 
  ButtonStyle style, 
  FocusNode focusNode, 
  bool autofocus, 
  Clip clipBehavior, 
  @required Widget icon, 
  @required Widget label
})
// Example:
TextButton.icon(
            icon: Icon(Icons.camera),
            label: Text('Take A Photo'),
            onPressed: () {},
          )