AndrossyButton constructor
const
AndrossyButton({
- Key? key,
- int animation = 0,
- Curve animationCurve = Curves.linear,
- ImageFilter? backdropFilter,
- BlendMode? backdropMode,
- Color? color,
- BoxDecoration? decoration,
- ShapeBorder? decorationShape,
- BoxDecoration? foregroundDecoration,
- ShapeBorder? foregroundDecorationShape,
- CustomClipper? clipper,
- AndrossyPainterConfig? clipConfig,
- Clip? clipBehavior,
- double? aspectRatio,
- int? flex,
- double? opacity,
- bool opacityAlwaysIncludeSemantics = false,
- bool visibility = true,
- CustomPainter? painter,
- AndrossyPainterConfig? painterConfig,
- bool absorbPointer = false,
- bool ignorePointer = false,
- Alignment? alignment,
- ViewPosition? position,
- ViewPositionType? positionType,
- void onRenderedSize()?,
- BlendMode shaderBlendMode = BlendMode.modulate,
- ShaderCallback? shaderCallback,
- Gradient? shaderGradient,
- List<
BoxShadow> ? shadows, - BoxConstraints? constraints,
- double? height,
- double? width,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- double elevation = 0,
- bool enabled = true,
- bool haptic = true,
- Color? highlightColor,
- Color? hoverColor,
- Color? splashColor,
- GestureClickEffect? clickEffect,
- OnAndrossyGestureClickListener? onClick,
- OnAndrossyGestureClickListener? onDoubleClick,
- OnAndrossyGestureClickListener? onLongClick,
- void onHover(
- bool status
- dynamic icon,
- IconAlignment iconAlignment = IconAlignment.end,
- Color? iconColor,
- bool iconColorAsRoot = false,
- bool iconFlexible = false,
- bool iconOnly = false,
- double? iconSize,
- double? iconSpace,
- String? text,
- bool textAllCaps = true,
- bool textCenter = false,
- Color? textColor,
- FontWeight? textFontWeight,
- double? textSize,
- TextStyle? textStyle,
- 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,
});