GlassSwipeActions constructor
const
GlassSwipeActions({
- Key? key,
- required Widget child,
- List<
GlassSwipeAction> leadingActions = const [], - List<
GlassSwipeAction> trailingActions = const [], - bool allowsFullSwipe = true,
- double fullSwipeThreshold = 0.65,
- double? actionWidth,
- double buttonDiameter = 50.0,
- double buttonSpacing = 12.0,
- double horizontalPadding = 12.0,
- BorderRadiusGeometry? borderRadius,
- GlassSwipeController? controller,
- ValueChanged<
GlassSwipeState> ? onSwipeStateChanged, - bool enableHaptics = true,
- bool closeOnTapOutside = true,
- Clip clipBehavior = Clip.antiAlias,
- GlassSwipeActionStyle style = GlassSwipeActionStyle.tintedGlass,
- VoidCallback? onDismissed,
Creates a swipeable action container.
Implementation
const GlassSwipeActions({
super.key,
required this.child,
this.leadingActions = const [],
this.trailingActions = const [],
this.allowsFullSwipe = true,
this.fullSwipeThreshold = 0.65,
this.actionWidth,
this.buttonDiameter = 50.0,
this.buttonSpacing = 12.0,
this.horizontalPadding = 12.0,
this.borderRadius,
this.controller,
this.onSwipeStateChanged,
this.enableHaptics = true,
this.closeOnTapOutside = true,
this.clipBehavior = Clip.antiAlias,
this.style = GlassSwipeActionStyle.tintedGlass,
this.onDismissed,
}) : assert(fullSwipeThreshold > 0.0 && fullSwipeThreshold <= 1.0,
'fullSwipeThreshold must be between 0.0 and 1.0');