buttons method

Widget buttons({
  1. required void onPressed()?,
  2. required Widget icon,
  3. Color? bordercolor,
  4. Color? backgroundColor,
  5. Color? shadowColor,
})

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,
    ),
  );
}