FxButton.light constructor
FxButton.light({
- required String text,
- required VoidCallback onPressed,
- IconData? leadingIcon,
- IconData? trailingIcon,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BorderRadius? radius,
- Color? color = FxColors.light,
- List<
BoxShadow> ? shadow, - Color? textColor = FxColors.dark,
- Color? iconColor,
- Color outlineColor = FxColors.light,
- BtnShape shape = BtnShape.rounded,
- BtnSize size = BtnSize.normal,
- BtnType type = BtnType.solid,
Implementation
factory FxButton.light({
required String text,
required VoidCallback onPressed,
IconData? leadingIcon,
IconData? trailingIcon,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
BorderRadius? radius,
Color? color = FxColors.light,
List<BoxShadow>? shadow,
Color? textColor = FxColors.dark,
Color? iconColor,
Color outlineColor = FxColors.light,
BtnShape shape = BtnShape.rounded,
BtnSize size = BtnSize.normal,
BtnType type = BtnType.solid,
}) =>
FxButton(
text: text,
onPressed: onPressed,
leadingIcon: leadingIcon,
trailingIcon: trailingIcon,
padding: padding,
margin: margin,
radius: radius,
color: color,
shadow: shadow,
textColor: textColor,
iconColor: iconColor,
outlineColor: outlineColor,
shape: shape,
size: size,
type: type,
);