FCCElevatedButton constructor
const
FCCElevatedButton({
- Key? key,
- Widget? child,
- String? text,
- double? fontSize,
- FontWeight? fontWeight,
- String? fontFamily,
- Color? textColor,
- TextStyle? textStyle,
- TextAlign textAlign = TextAlign.center,
- Widget? prefix,
- Widget? suffix,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- bool isEnabled = true,
- bool use3DEffect = true,
- bool forceSolidGradient = false,
- bool isLoading = false,
- bool enableTapEffect = true,
- bool hapticFeedback = true,
- bool isPill = false,
- double borderRadius = 12.0,
- double elevation = 6.0,
- double? height,
- double? width,
- Gradient? gradient,
- List<
BoxShadow> ? boxShadow, - FCCGradientStyle? gradientStyle,
- Color? backgroundColor,
- Color? disabledColor,
- Widget? disabledChild,
- String? loadingText,
- TextStyle? loadingTextStyle,
- Color? loadingColor,
- String? tooltip,
- String? semanticLabel,
- bool excludeSemantics = false,
- bool bounceOnTap = true,
- bool rippleOnly = false,
- bool shimmerOnHover = false,
- Duration animationDuration = const Duration(milliseconds: 100),
Implementation
const FCCElevatedButton({
super.key,
this.child,
this.text,
this.fontSize,
this.fontWeight,
this.fontFamily,
this.textColor,
this.textStyle,
this.textAlign = TextAlign.center,
this.prefix,
this.suffix,
this.onPressed,
this.onLongPress,
this.isEnabled = true,
this.use3DEffect = true,
this.forceSolidGradient = false,
this.isLoading = false,
this.enableTapEffect = true,
this.hapticFeedback = true,
this.isPill = false,
this.borderRadius = 12.0,
this.elevation = 6.0,
this.height,
this.width,
this.gradient,
this.boxShadow,
this.gradientStyle,
this.backgroundColor,
this.disabledColor,
this.disabledChild,
this.loadingText,
this.loadingTextStyle,
this.loadingColor,
this.tooltip,
this.semanticLabel,
this.excludeSemantics = false,
this.bounceOnTap = true,
this.rippleOnly = false,
this.shimmerOnHover = false,
this.animationDuration = const Duration(milliseconds: 100),
}) : assert(child != null || text != null,
'Either child or text must be provided');