AppElevatedButton constructor

const AppElevatedButton({
  1. Key? key,
  2. void onPressed()?,
  3. String? title,
  4. Widget? child,
  5. Color? bgColor,
  6. Color? textColor,
  7. Color? disabledBgColor,
  8. Color? disabledTextColor,
  9. double? width,
  10. double? height,
  11. double? fontSize,
  12. FontWeight? fontWeight,
  13. BorderRadiusGeometry? borderRadius,
  14. EdgeInsetsGeometry? padding,
  15. double? elevation,
  16. BorderSide? side,
  17. bool isLoading = false,
  18. Widget? loadingWidget,
  19. bool enabled = true,
  20. FocusNode? focusNode,
  21. bool autofocus = false,
  22. Clip clipBehavior = Clip.none,
  23. WidgetStatesController? statesController,
  24. IconData? prefixIcon,
  25. IconData? suffixIcon,
  26. double? iconSize,
  27. double? iconSpacing,
  28. bool enableDebounce = true,
  29. Duration debounceDuration = const Duration(milliseconds: 300),
  30. String? semanticLabel,
  31. bool excludeFromSemantics = false,
  32. 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,
});