SimpleButton constructor
const
SimpleButton({
- Key? key,
- String text = 'Button',
- bool isElastic = false,
- bool addInkWell = false,
- TextOverflow overflow = TextOverflow.ellipsis,
- TextStyle? textStyle,
- bool visible = true,
- BoxConstraints? constraints,
- GestureTapCallback? onTap,
- String? heroTag,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color,
- double? width,
- double? height,
- Decoration? decoration,
- AlignmentGeometry? alignment,
- int? maxLines,
- Widget? child,
- bool withOpacity = false,
- bool useCache = true,
- double scaleCoefficient = 0.95,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- BorderRadius borderRadius = BorderRadius.zero,
Implementation
const SimpleButton({
super.key,
this.text = 'Button',
this.isElastic = false,
this.addInkWell = false,
this.overflow = TextOverflow.ellipsis,
this.textStyle,
this.visible = true,
this.constraints,
this.onTap,
this.heroTag,
this.padding,
this.margin,
this.color,
this.width,
this.height,
this.decoration,
this.alignment,
this.maxLines,
this.child,
this.withOpacity = false,
this.useCache = true,
this.scaleCoefficient = 0.95,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.splashColor,
this.borderRadius = BorderRadius.zero,
});