DynamicButton constructor

const DynamicButton({
  1. Key? key,
  2. bool? selected = false,
  3. bool enabled = true,
  4. String style = "Stadium",
  5. String? title = "",
  6. String? styleTitle = "",
  7. String? tooltip,
  8. Widget? icon,
  9. Widget? end,
  10. Color? textColor,
  11. Color? iconColor,
  12. TextStyle? textStyle,
  13. Color? backColor,
  14. Color? hoverColor,
  15. Color? pressColor,
  16. Color? outlineColor,
  17. Color? shadowColor,
  18. double elevation = 2.0,
  19. double paddingH = 10.0,
  20. double paddingV = 10.0,
  21. VoidCallback? onTap,
  22. VoidCallback? onLongTap,
})

Implementation

const DynamicButton({
  Key? key,
  // this.colorTextAuto = false,
  this.selected = false,
  this.enabled = true,
  this.style = "Stadium",

  /// Stadium // Rectangle // Circle // Beveled
  this.title = "",
  this.styleTitle = "",
  this.tooltip, // null
  this.icon, // = null,
  this.end, // = null,
  this.textColor,
  this.iconColor,
  this.textStyle,
  this.backColor,
  this.hoverColor,
  this.pressColor,
  this.outlineColor,
  this.shadowColor,
  this.elevation = 2.0,
  this.paddingH = 10.0,
  this.paddingV = 10.0, // Border Size
  this.onTap,
  this.onLongTap,
}) : super(key: key);