AndrossyButton constructor
const
AndrossyButton({
- Key? key,
- bool activated = false,
- bool enabled = true,
- bool loading = false,
- dynamic icon,
- AndrossyButtonProperty? icons,
- IconAlignment iconOrIndicatorAlignment = IconAlignment.end,
- AndrossyButtonProperty<
Color> ? iconColor, - AndrossyButtonProperty<
Color> ? indicatorColor, - bool autoIconOrIndicatorColorAdjustment = true,
- bool iconOrIndicatorFlexible = false,
- bool iconOnly = false,
- double iconSize = 24,
- double? iconOrIndicatorSpace,
- Widget? indicator,
- double? indicatorSize,
- double? indicatorStrokeWidth,
- String? text,
- AndrossyButtonProperty<
String> ? texts, - bool centerText = false,
- AndrossyButtonProperty<
Color> textColor = const AndrossyButtonProperty(), - bool textAllCaps = false,
- double? textSize,
- TextStyle? textStyle,
- AndrossyButtonProperty<
Color> backgroundColor = const AndrossyButtonProperty(), - double? width,
- double? height,
- BoxConstraints? constraints,
- EdgeInsets padding = const EdgeInsets.all(8),
- AndrossyButtonProperty<
Color> borderColor = const AndrossyButtonProperty(), - double borderWidth = 1.5,
- double borderStrokeAlign = BorderSide.strokeAlignInside,
- VoidCallback? onDoubleTap,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - VoidCallback? onTap,
- ValueChanged<
bool> ? onToggle, - Color? primary,
- bool borderOnly = false,
- BorderRadius? borderRadius,
- double elevation = 0,
- Color? elevationColor,
- bool enableFeedback = true,
- Color? highlightColor,
- Color? hoverColor,
- MouseCursor? mouseCursor,
- Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- WidgetStateProperty<
Color?> ? overlayColor, - 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(),
});