AndrossyButton constructor

const AndrossyButton({
  1. Key? key,
  2. bool activated = false,
  3. bool enabled = true,
  4. bool loading = false,
  5. dynamic icon,
  6. AndrossyButtonProperty? icons,
  7. IconAlignment iconOrIndicatorAlignment = IconAlignment.end,
  8. AndrossyButtonProperty<Color>? iconColor,
  9. AndrossyButtonProperty<Color>? indicatorColor,
  10. bool autoIconOrIndicatorColorAdjustment = true,
  11. bool iconOrIndicatorFlexible = false,
  12. bool iconOnly = false,
  13. double iconSize = 24,
  14. double? iconOrIndicatorSpace,
  15. Widget? indicator,
  16. double? indicatorSize,
  17. double? indicatorStrokeWidth,
  18. String? text,
  19. AndrossyButtonProperty<String>? texts,
  20. bool centerText = false,
  21. AndrossyButtonProperty<Color> textColor = const AndrossyButtonProperty(),
  22. bool textAllCaps = false,
  23. double? textSize,
  24. TextStyle? textStyle,
  25. AndrossyButtonProperty<Color> backgroundColor = const AndrossyButtonProperty(),
  26. double? width,
  27. double? height,
  28. BoxConstraints? constraints,
  29. EdgeInsets padding = const EdgeInsets.all(8),
  30. AndrossyButtonProperty<Color> borderColor = const AndrossyButtonProperty(),
  31. double borderWidth = 1.5,
  32. double borderStrokeAlign = BorderSide.strokeAlignInside,
  33. VoidCallback? onDoubleTap,
  34. VoidCallback? onLongPress,
  35. ValueChanged<bool>? onHover,
  36. VoidCallback? onTap,
  37. ValueChanged<bool>? onToggle,
  38. Color? primary,
  39. bool borderOnly = false,
  40. BorderRadius? borderRadius,
  41. double elevation = 0,
  42. Color? elevationColor,
  43. bool enableFeedback = true,
  44. Color? highlightColor,
  45. Color? hoverColor,
  46. MouseCursor? mouseCursor,
  47. Color? splashColor,
  48. InteractiveInkFeatureFactory? splashFactory,
  49. WidgetStateProperty<Color?>? overlayColor,
  50. AndrossyGestureEffect clickEffect = const AndrossyGestureEffect(),
})

Implementation

const AndrossyButton({
  super.key,
  this.activated = false,
  this.enabled = true,
  this.loading = false,
  this.icon,
  this.icons,
  this.iconOrIndicatorAlignment = IconAlignment.end,
  this.iconColor,
  this.indicatorColor,
  this.autoIconOrIndicatorColorAdjustment = true,
  this.iconOrIndicatorFlexible = false,
  this.iconOnly = false,
  this.iconSize = 24,
  this.iconOrIndicatorSpace,
  this.indicator,
  this.indicatorSize,
  this.indicatorStrokeWidth,
  this.text,
  this.texts,
  this.centerText = false,
  this.textColor = const AndrossyButtonProperty(),
  this.textAllCaps = false,
  this.textSize,
  this.textStyle,
  this.backgroundColor = const AndrossyButtonProperty(),
  this.width,
  this.height,
  this.constraints,
  this.padding = const EdgeInsets.all(8),
  this.borderColor = const AndrossyButtonProperty(),
  this.borderWidth = 1.5,
  this.borderStrokeAlign = BorderSide.strokeAlignInside,
  this.onDoubleTap,
  this.onLongPress,
  this.onHover,
  this.onTap,
  this.onToggle,
  this.primary,
  this.borderOnly = false,
  this.borderRadius,
  this.elevation = 0,
  this.elevationColor,
  this.enableFeedback = true,
  this.highlightColor,
  this.hoverColor,
  this.mouseCursor,
  this.splashColor,
  this.splashFactory,
  this.overlayColor,
  this.clickEffect = const AndrossyGestureEffect(),
});