build method

  1. @override
Widget build(
  1. BuildContext context
)
override

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