button method
Implementation
Widget button() => Material(
elevation: elevation,
borderRadius: borderRadius,
borderOnForeground: false,
color: backgroundColor,
child: InkWell(
onTap: isActive ? onPressed : null,
borderRadius: borderRadius,
child: Container(
width: widget.width,
decoration: !haveBorder ? null : BoxDecoration(
border: Border.all(color: borderColor),
borderRadius: borderRadius,
),
padding: widget.suffixChip != null
? EdgeInsets.only(left: widget.padding.left)
: widget.padding,
child: DefaultTextStyle.merge(
child: content(),
style: TextStyle(
color: foregroundColor,
fontSize: widget.fontSize,
),
),
),
),
);