SButton constructor
const
SButton({
- Key? key,
- required Widget child,
- Color? splashColor,
- AlignmentGeometry? alignment,
- bool ignoreChildWidgetOnTap = false,
- bool isCircleButton = false,
- bool shouldBounce = true,
- double bounceScale = 0.98,
- BubbleLabelContent? bubbleLabelContent,
- Color? selectedColor,
- void onDoubleTap(
- Offset onTapPosition
- void onTap(
- Offset onTapPosition
- double? splashOpacity,
- void onLongPressStart()?,
- void onLongPressEnd()?,
- Duration? delay,
- HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
- bool enableHapticFeedback = true,
- HapticFeedbackType hapticFeedbackType = HapticFeedbackType.lightImpact,
- bool isLoading = false,
- Widget? loadingWidget,
- dynamic onError(
- Object error
- Widget errorBuilder(
- BuildContext context,
- Object error
- bool isActive = true,
- BorderRadius? borderRadius,
- String? tooltipMessage,
- bool disableOpacityChange = false,
- double? opacityWhenDisabled = 0.3,
- void onTappedWhenDisabled()?,
Implementation
const SButton({
super.key,
required this.child,
this.splashColor,
this.alignment,
this.ignoreChildWidgetOnTap = false,
this.isCircleButton = false,
this.shouldBounce = true,
this.bounceScale = 0.98,
this.bubbleLabelContent,
this.selectedColor,
this.onDoubleTap,
this.onTap,
this.splashOpacity,
this.onLongPressStart,
this.onLongPressEnd,
this.delay,
this.hitTestBehavior = HitTestBehavior.opaque,
this.enableHapticFeedback = true,
this.hapticFeedbackType = HapticFeedbackType.lightImpact,
this.isLoading = false,
this.loadingWidget,
this.onError,
this.errorBuilder,
this.isActive = true,
this.borderRadius,
this.tooltipMessage,
this.disableOpacityChange = false,
this.opacityWhenDisabled = 0.3,
this.onTappedWhenDisabled,
});