AndrossyButton constructor

const AndrossyButton({
  1. Key? key,
  2. int animation = 0,
  3. Curve animationCurve = Curves.linear,
  4. ImageFilter? backdropFilter,
  5. BlendMode? backdropMode,
  6. Color? color,
  7. BoxDecoration? decoration,
  8. ShapeBorder? decorationShape,
  9. BoxDecoration? foregroundDecoration,
  10. ShapeBorder? foregroundDecorationShape,
  11. CustomClipper? clipper,
  12. AndrossyPainterConfig? clipConfig,
  13. Clip? clipBehavior,
  14. double? aspectRatio,
  15. int? flex,
  16. double? opacity,
  17. bool opacityAlwaysIncludeSemantics = false,
  18. bool visibility = true,
  19. CustomPainter? painter,
  20. AndrossyPainterConfig? painterConfig,
  21. bool absorbPointer = false,
  22. bool ignorePointer = false,
  23. Alignment? alignment,
  24. ViewPosition? position,
  25. ViewPositionType? positionType,
  26. void onRenderedSize(
    1. Size
    )?,
  27. BlendMode shaderBlendMode = BlendMode.modulate,
  28. ShaderCallback? shaderCallback,
  29. Gradient? shaderGradient,
  30. List<BoxShadow>? shadows,
  31. BoxConstraints? constraints,
  32. double? height,
  33. double? width,
  34. EdgeInsets? margin,
  35. EdgeInsets? padding,
  36. Matrix4? transform,
  37. AlignmentGeometry? transformAlignment,
  38. double elevation = 0,
  39. bool enabled = true,
  40. bool haptic = true,
  41. Color? highlightColor,
  42. Color? hoverColor,
  43. Color? splashColor,
  44. GestureClickEffect? clickEffect,
  45. OnAndrossyGestureClickListener? onClick,
  46. OnAndrossyGestureClickListener? onDoubleClick,
  47. OnAndrossyGestureClickListener? onLongClick,
  48. void onHover(
    1. bool status
    )?,
  49. dynamic icon,
  50. IconAlignment iconAlignment = IconAlignment.end,
  51. Color? iconColor,
  52. bool iconColorAsRoot = false,
  53. bool iconFlexible = false,
  54. bool iconOnly = false,
  55. double? iconSize,
  56. double? iconSpace,
  57. String? text,
  58. bool textAllCaps = true,
  59. bool textCenter = false,
  60. Color? textColor,
  61. FontWeight? textFontWeight,
  62. double? textSize,
  63. TextStyle? textStyle,
  64. bool activated = false,
})

Implementation

const AndrossyButton({
  super.key,
  // ANIMATION
  super.animation,
  super.animationCurve,
  // BACKDROP
  super.backdropFilter,
  super.backdropMode,
  // DECORATION
  super.color,
  super.decoration,
  super.decorationShape,
  super.foregroundDecoration,
  super.foregroundDecorationShape,
  // CLIPPER
  super.clipper,
  super.clipConfig,
  super.clipBehavior,
  // DIMENSION
  super.aspectRatio,
  super.flex,
  // OPACITY AND VISIBILITY
  super.opacity,
  super.opacityAlwaysIncludeSemantics,
  super.visibility,
  // PAINTER
  super.painter,
  super.painterConfig,
  // POINTER
  super.absorbPointer,
  super.ignorePointer,
  // POSITION
  super.alignment,
  super.position,
  super.positionType,
  // RENDER
  super.onRenderedSize,
  // SHADER
  super.shaderBlendMode,
  super.shaderCallback,
  super.shaderGradient,
  // SHADOW
  super.shadows,
  // SIZE
  super.constraints,
  super.height,
  super.width,
  // SPACER
  super.margin,
  super.padding,
  // TRANSFORM
  super.transform,
  super.transformAlignment,
  // GESTURE
  super.elevation,
  super.enabled,
  super.haptic,
  super.highlightColor,
  super.hoverColor,
  super.splashColor,
  super.clickEffect,
  super.onClick,
  super.onDoubleClick,
  super.onLongClick,
  super.onHover,

  // ICON
  this.icon,
  this.iconAlignment = IconAlignment.end,
  this.iconColor,
  this.iconColorAsRoot = false,
  this.iconFlexible = false,
  this.iconOnly = false,
  this.iconSize,
  this.iconSpace,
  // TEXT
  this.text,
  this.textAllCaps = true,
  this.textCenter = false,
  this.textColor,
  this.textFontWeight,
  this.textSize,
  this.textStyle,
  // BASE
  this.activated = false,
});