SimpleButton constructor

const SimpleButton({
  1. Key? key,
  2. String text = 'Button',
  3. bool isElastic = false,
  4. bool addInkWell = false,
  5. TextOverflow overflow = TextOverflow.ellipsis,
  6. TextStyle? textStyle,
  7. bool visible = true,
  8. BoxConstraints? constraints,
  9. GestureTapCallback? onTap,
  10. String? heroTag,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
  13. Color? color,
  14. double? width,
  15. double? height,
  16. Decoration? decoration,
  17. AlignmentGeometry? alignment,
  18. int? maxLines,
  19. Widget? child,
  20. bool withOpacity = false,
  21. bool useCache = true,
  22. double scaleCoefficient = 0.95,
  23. Color? focusColor,
  24. Color? hoverColor,
  25. Color? highlightColor,
  26. Color? splashColor,
  27. 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,
});