ButtonPrimary constructor
const
ButtonPrimary({
- Key? key,
- dynamic onTap(
- BuildContext context
- required String text,
- Color? textColor,
- Color? buttonColor,
- double radius = -1,
- double elevation = -1,
- IconData? icon,
- bool disabled = false,
- bool upperCase = false,
- bool widgetOnBrandedSurface = false,
- bool expand = true,
- bool layoutVertically = false,
- bool isNegative = false,
- bool isNeutral = false,
- IconData? leftIcon,
- IconData? rightIcon,
- PrimaryButtonTextSize? buttonTextSize = PrimaryButtonTextSize.small,
- bool? isBold = true,
- bool? animate = true,
Implementation
const ButtonPrimary({
super.key,
this.onTap,
required this.text,
this.textColor,
this.buttonColor,
this.radius = -1,
this.elevation = -1,
this.icon,
this.disabled = false,
this.upperCase = false,
this.widgetOnBrandedSurface = false,
this.expand = true,
this.layoutVertically = false,
this.isNegative = false,
this.isNeutral = false,
this.leftIcon,
this.rightIcon,
this.buttonTextSize = PrimaryButtonTextSize.small,
this.isBold = true,
this.animate = true,
});