outlineButton static method
dynamic
outlineButton({
- dynamic buttonText,
- dynamic buttonColor,
- dynamic cornerRadius,
- dynamic onClick,
- dynamic textColor,
- dynamic fontSize,
- dynamic verticalPadding,
- dynamic horizontalPadding,
- dynamic showIndicator,
- dynamic buttonIcon,
- dynamic shadowColor,
- dynamic elevation,
- dynamic style,
Implementation
static outlineButton({
var buttonText,
var buttonColor,
var cornerRadius,
var onClick,
var textColor,
var fontSize,
var verticalPadding,
var horizontalPadding,
var showIndicator,
var buttonIcon,
var shadowColor,
var elevation,
var style,
}) {
return OutlinedButton(
onPressed: onClick ?? () {},
style: OutlinedButton.styleFrom(
shadowColor: shadowColor ?? CommonColors.white,
elevation: elevation ?? radius_1,
backgroundColor: buttonColor ?? CommonColors.white,
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(cornerRadius ?? radius_100)),
padding: EdgeInsets.symmetric(
vertical: verticalPadding ?? margin_16,
horizontal: horizontalPadding ?? margin_10)),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CommonWidgets.commonText(buttonText,
style: GoogleFonts.poppins(
textStyle: TextStyle(
color: textColor ?? CommonColors.black,
fontSize: fontSize ?? font_16,
fontWeight: FontWeight.w600,
height: 1.5))),
CommonWidgets.sizedBox(width: margin_5),
buttonIcon ?? Container()
],
));
}