New Elevate Button-------->
style --->
customElevatedButton({radius, color}) => ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(radius == null ? 100 : radius),
),
primary: color,
);
icon--->
Widget saveIcon() => iconsStyle1(
Icons.save,
);
//common icon style
iconsStyle1(icon) => Icon(
icon,
color: white,
size: 15,
);
button use--->
ElevatedButton.icon(
icon: saveIcon(),
style:
customElevatedButton(color: Colors.green[700]),
label: Text('Save',
style: TextStyle(color: Colors.white)),
onPressed: () {
},
),