DismissiblePage constructor
const
DismissiblePage({
- required Widget child,
- required VoidCallback onDismissed,
- VoidCallback? onDragStart,
- VoidCallback? onDragEnd,
- ValueChanged<
DismissiblePageDragUpdateDetails> ? onDragUpdate, - bool isFullScreen = true,
- bool disabled = false,
- Color backgroundColor = Colors.black,
- DismissiblePageDismissDirection direction = DismissiblePageDismissDirection.vertical,
- Map<
DismissiblePageDismissDirection, double> dismissThresholds = const <DismissiblePageDismissDirection, double>{}, - DragStartBehavior dragStartBehavior = DragStartBehavior.down,
- double dragSensitivity = 0.7,
- double minRadius = 7,
- double minScale = .85,
- double maxRadius = 30,
- double maxTransformValue = .4,
- double startingOpacity = 1,
- HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
- Duration reverseDuration = const Duration(milliseconds: 200),
- Key? key,
Implementation
const DismissiblePage({
required this.child,
required this.onDismissed,
this.onDragStart,
this.onDragEnd,
this.onDragUpdate,
this.isFullScreen = true,
this.disabled = false,
this.backgroundColor = Colors.black,
this.direction = DismissiblePageDismissDirection.vertical,
this.dismissThresholds = const <DismissiblePageDismissDirection, double>{},
this.dragStartBehavior = DragStartBehavior.down,
this.dragSensitivity = 0.7,
this.minRadius = 7,
this.minScale = .85,
this.maxRadius = 30,
this.maxTransformValue = .4,
this.startingOpacity = 1,
this.hitTestBehavior = HitTestBehavior.opaque,
this.reverseDuration = const Duration(milliseconds: 200),
Key? key,
}) : super(key: key);