flutter button with text code example
Example 1: flutter text button
TextButton(
onPressed: () {
},
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
})
TextButton.icon(
icon: Icon(Icons.camera),
label: Text('Take A Photo'),
onPressed: () {},
)
Example 3: flatbutton flutter
FlatButton(
onPressed: () {
},
child: Text(
"Flat Button",
),
)
Example 4: flutter raised button with icon
FlatButton.icon(onPressed: null, icon: null, label: null);
RaisedButton.icon(onPressed: null, icon: null, label: null);