AnimatedDraggableOverlayWrapper constructor
const
AnimatedDraggableOverlayWrapper({
- Key? key,
- required Widget child,
- bool snapToEdge = true,
- DraggableCorner initialCorner = DraggableCorner.bottomRight,
- Offset? initialPosition,
- double initialMargin = 16,
- VoidCallback? onTap,
- VoidCallback? onDragStart,
- ValueChanged<
Offset> ? onDragEnd, - Duration snapAnimationDuration = const Duration(milliseconds: 350),
- Curve snapAnimationCurve = Curves.easeOutCubic,
- EdgeInsets childPadding = EdgeInsets.zero,
- double edgeMargin = 0,
- double? snapThreshold,
Implementation
const AnimatedDraggableOverlayWrapper({
super.key,
required this.child,
this.snapToEdge = true,
this.initialCorner = DraggableCorner.bottomRight,
this.initialPosition,
this.initialMargin = 16,
this.onTap,
this.onDragStart,
this.onDragEnd,
this.snapAnimationDuration = const Duration(milliseconds: 350),
this.snapAnimationCurve = Curves.easeOutCubic,
this.childPadding = EdgeInsets.zero,
this.edgeMargin = 0,
this.snapThreshold,
});