ButtonWidget constructor

ButtonWidget({
  1. required String data,
  2. double width = 110,
  3. double height = 40,
  4. double progressIndicatorSize = 20,
  5. double progressIndicatorStrokeWidth = 2,
  6. required Function onClick,
  7. bool isInProgress = false,
  8. bool isBorder = false,
  9. bool showShadow = true,
  10. double? borderTopLeftRadius,
  11. double? borderTopRightRadius,
  12. double? borderBottomRightRadius,
  13. double? borderBottomLeftRadius,
  14. double borderRadius = 6,
  15. double borderWidth = 1,
  16. FontWeight fontWeight = FontWeight.normal,
  17. double fontSize = 12,
  18. Color? buttonBackgroundColor,
  19. TextStyle? textStyle,
  20. Color? buttonShadowColor,
  21. Color? buttonProgressIndicatorColor,
  22. bool enabled = true,
  23. Color? borderColor = Colors.transparent,
  24. Color? textColor,
})

Implementation

ButtonWidget(
    {required this.data,
    this.width = 110,
    this.height = 40,
    this.progressIndicatorSize = 20,
    this.progressIndicatorStrokeWidth = 2,
    required this.onClick,
    this.isInProgress = false,
    this.isBorder = false,
    this.showShadow = true,
    this.borderTopLeftRadius,
    this.borderTopRightRadius,
    this.borderBottomRightRadius,
    this.borderBottomLeftRadius,
    this.borderRadius = 6,
    this.borderWidth = 1,
    this.fontWeight = FontWeight.normal,
    this.fontSize = 12,
     this.buttonBackgroundColor,
    this.textStyle,
    this.buttonShadowColor,
    this.buttonProgressIndicatorColor,
    this.enabled = true,
    this.borderColor = Colors.transparent,
    this.textColor});