FButton constructor
const
FButton({
- Key? key,
- VoidCallback? onPressed,
- FColorI? enabledColor,
- FColorI? disabledColor,
- FColorI? hoveredColor,
- FColorI? pressedColor,
- FColorI? enabledIconColor,
- FColorI? hoveredIconColor,
- FColorI? disabledIconColor,
- FColorI? pressedIconColor,
- FColorI? enabledTextColor,
- FColorI? hoveredTextColor,
- FColorI? disabledTextColor,
- FColorI? pressedTextColor,
- FIconType? icon,
- String? buttonText,
- FTypographyType fTextTypographyType = FTypographyType.bodyLarge,
- double? width,
- double height = 40,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? enabledBoxShadows, - List<
BoxShadow> ? hoveredBoxShadows, - List<
BoxShadow> ? disabledBoxShadows, - List<
BoxShadow> ? pressedBoxShadows, - double? spacingBetweenIconAndText,
- EdgeInsets? padding,
- BoxFit? boxFit,
- TextOverflow textOverflow = TextOverflow.ellipsis,
- required FButtonType buttonType,
Implementation
const FButton({
Key? key,
this.onPressed,
this.enabledColor,
this.disabledColor,
this.hoveredColor,
this.pressedColor,
this.enabledIconColor,
this.hoveredIconColor,
this.disabledIconColor,
this.pressedIconColor,
this.enabledTextColor,
this.hoveredTextColor,
this.disabledTextColor,
this.pressedTextColor,
this.icon,
this.buttonText,
this.fTextTypographyType = FTypographyType.bodyLarge,
this.width,
this.height = 40,
this.borderRadius,
this.enabledBoxShadows,
this.hoveredBoxShadows,
this.disabledBoxShadows,
this.pressedBoxShadows,
this.spacingBetweenIconAndText,
this.padding,
this.boxFit,
this.textOverflow = TextOverflow.ellipsis,
required this.buttonType,
}) : assert(icon != null || buttonText != null,
'Debe proporcionar al menos un icono o un texto.'),
super(key: key);