ButtonWidget constructor
ButtonWidget({
- required String data,
- double width = 110,
- double height = 40,
- double progressIndicatorSize = 20,
- double progressIndicatorStrokeWidth = 2,
- required Function onClick,
- bool isInProgress = false,
- bool isBorder = false,
- bool showShadow = true,
- double? borderTopLeftRadius,
- double? borderTopRightRadius,
- double? borderBottomRightRadius,
- double? borderBottomLeftRadius,
- double borderRadius = 6,
- double borderWidth = 1,
- FontWeight fontWeight = FontWeight.normal,
- double fontSize = 12,
- Color? buttonBackgroundColor,
- TextStyle? textStyle,
- Color? buttonShadowColor,
- Color? buttonProgressIndicatorColor,
- bool enabled = true,
- Color? borderColor = Colors.transparent,
- 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});