YurButton constructor
const
YurButton({
- Key? key,
- String? text,
- required BStyle buttonStyle,
- VoidCallback? onPressed,
- Color? buttonColor,
- Color? textColor,
- FontWeight? fontWeight,
- double borderRadius = 8.0,
- double fontSize = 16.0,
- double paddingVertical = 12.0,
- double paddingHorizontal = 24.0,
- int maxlines = 1,
- TextOverflow overflow = TextOverflow.ellipsis,
- IconData? icon,
- Color? iconColor,
- double? iconSize,
- String? iconAssets,
- double? iconAssetsHeight,
- String? iconNetwork,
- double? iconNetworkHeight,
- EdgeInsetsGeometry? padding,
Implementation
const YurButton({
super.key,
this.text,
required this.buttonStyle,
this.onPressed,
this.buttonColor,
this.textColor,
this.fontWeight,
this.borderRadius = 8.0,
this.fontSize = 16.0,
this.paddingVertical = 12.0,
this.paddingHorizontal = 24.0,
this.maxlines = 1,
this.overflow = TextOverflow.ellipsis,
this.icon,
this.iconColor,
this.iconSize,
this.iconAssets,
this.iconAssetsHeight,
this.iconNetwork,
this.iconNetworkHeight,
this.padding,
});