buttons method
Implementation
Widget buttons({
required void Function()? onPressed,
required Widget icon,
Color? bordercolor,
Color? backgroundColor,
Color? shadowColor,
}) {
return ButtonTheme(
height: 40,
minWidth: 40,
child: ElevatedButton(
onPressed: onPressed,
style: ElevatedButton.styleFrom(
backgroundColor: backgroundColor ?? Colors.transparent,
shadowColor: shadowColor ?? Colors.transparent,
shape: const CircleBorder(),
side: BorderSide(color: bordercolor ?? Colors.white, width: 2.0),
padding: const EdgeInsets.all(10),
),
child: icon,
),
);
}