xxxxxxxxxx
ElevatedButton.icon(
onPressed: () {},
icon: Icon(Icons.email),
label: Text("Contact me"),
style: ElevatedButton.styleFrom(
textStyle: TextStyle(fontSize: 15),
),
),
xxxxxxxxxx
IconButton(
icon: Icon(
Icons.directions_transit,
),
onPressed: () {},
),
xxxxxxxxxx
ElevatedButton.icon(
icon: Icon(Icons.home),
label: Text('ElevatedButton'),
onPressed: () {},
),
xxxxxxxxxx
IconButton(
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Icon Button Clicked'),
),
);
},
icon: const Icon(Icons.add),
),
xxxxxxxxxx
RawMaterialButton(
onPressed: () {
// Handle button tap
},
shape: CircleBorder(),
fillColor: Theme.of(context).accentColor,
elevation: 4.0,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Icon(
Icons.keyboard,
color: Colors.white,
size: 24.0,
),
),
);