flutter TextButton code example
Example 1: flutter text button
TextButton(
onPressed: () {
// Respond to button press
},
child: Text("TEXT BUTTON"),
)
Example 2: 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: () {},
)