button with icon and text in flutter code example
Example 1: flutter textbutton.icon
TextButton.icon(
icon: Icon(Icons.camera),
label: Text('Take A Photo'),
onPressed: () {},
)
Example 2: icon as button flutter
IconButton(
icon: Icon(
Icons.directions_transit,
),
iconSize: 50,
color: Colors.green,
splashColor: Colors.purple,
onPressed: () {},
),
Example 3: flutter raised button with icon
FlatButton.icon(onPressed: null, icon: null, label: null);
RaisedButton.icon(onPressed: null, icon: null, label: null);