GeneralButton constructor

const GeneralButton({
  1. Key? key,
  2. double height = 40,
  3. double? fontSize = 13,
  4. double? iconSize = 18,
  5. double radius = 5,
  6. double? width,
  7. EdgeInsetsGeometry? padding,
  8. Callback? onPressed,
  9. VoidCallback? onLongPress,
  10. ValueChanged<bool>? onHover,
  11. ValueChanged<bool>? onFocusChange,
  12. ButtonStyle? style,
  13. Color? textColor,
  14. FocusNode? focusNode,
  15. BorderRadius? borderRadius,
  16. BorderSide? borderSide,
  17. bool autofocus = false,
  18. bool iconInRight = false,
  19. bool disabled = false,
  20. WidgetStatesController? statesController,
  21. bool showLoading = true,
  22. Widget? child,
  23. IconData? icon,
  24. required String label,
  25. bool fade = false,
  26. bool flat = false,
  27. bool reverse = false,
  28. Color? color,
  29. FontWeight? fontWeight,
})

Implementation

const GeneralButton(
    {super.key,
      this.height = 40,
      this.fontSize = 13,
      this.iconSize = 18,
      this.radius = 5,
      this.width,
      this.padding,
      this.onPressed,
      this.onLongPress,
      this.onHover,
      this.onFocusChange,
      this.style,
      this.textColor,
      this.focusNode,
      this.borderRadius,
      this.borderSide,
      this.autofocus = false,
      this.iconInRight = false,
      this.disabled = false,
      this.statesController,
      this.showLoading = true,
      this.child,
      this.icon,
      required this.label,
      // this.loading = false,
      this.fade = false,
      this.flat = false,
      this.reverse = false,
      this.color,
      this.fontWeight});