AppElevatedButton constructor
const
AppElevatedButton({
- Key? key,
- void onPressed()?,
- String? title,
- Widget? child,
- Color? bgColor,
- Color? textColor,
- Color? disabledBgColor,
- Color? disabledTextColor,
- double? width,
- double? height,
- double? fontSize,
- FontWeight? fontWeight,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? padding,
- double? elevation,
- BorderSide? side,
- bool isLoading = false,
- Widget? loadingWidget,
- bool enabled = true,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- WidgetStatesController? statesController,
- IconData? prefixIcon,
- IconData? suffixIcon,
- double? iconSize,
- double? iconSpacing,
- bool enableDebounce = true,
- Duration debounceDuration = const Duration(milliseconds: 300),
- String? semanticLabel,
- bool excludeFromSemantics = false,
- bool? enableSecurity,
Implementation
const AppElevatedButton({
super.key,
this.onPressed,
this.title,
this.child,
this.bgColor,
this.textColor,
this.disabledBgColor,
this.disabledTextColor,
this.width,
this.height,
this.fontSize,
this.fontWeight,
this.borderRadius,
this.padding,
this.elevation,
this.side,
this.isLoading = false,
this.loadingWidget,
this.enabled = true,
this.focusNode,
this.autofocus = false,
this.clipBehavior = Clip.none,
this.statesController,
this.prefixIcon,
this.suffixIcon,
this.iconSize,
this.iconSpacing,
this.enableDebounce = true,
this.debounceDuration = const Duration(milliseconds: 300),
this.semanticLabel,
this.excludeFromSemantics = false,
this.enableSecurity,
});