build method
Creates alert buttons based on constructor params
Implementation
@override
Widget build(BuildContext context) {
return Container(
padding: padding,
margin: margin,
width: width,
height: height,
decoration: BoxDecoration(
color: color ?? Theme.of(context).accentColor,
gradient: gradient,
borderRadius: radius,
border: border,
),
child: Material(
color: Colors.transparent,
child: InkWell(
highlightColor: highlightColor ?? Theme.of(context).highlightColor,
splashColor: splashColor ?? Theme.of(context).splashColor,
onTap: onPressed,
child: Center(
child: child,
),
),
),
);
}