bStyle function

ButtonStyle bStyle(
  1. Color color, {
  2. double radius = 0,
})

Implementation

ButtonStyle bStyle(Color color, {double radius: 0}) {
  return ButtonStyle(
      backgroundColor: MaterialStateProperty.all(color),
      shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(radius))));
}