DraggableBottomSheet constructor
const
DraggableBottomSheet({
- Key? key,
- required Widget previewWidget,
- required Widget backgroundWidget,
- required Widget expandedWidget,
- required dynamic onDragging(),
- double minExtent = 50.0,
- bool collapsed = true,
- bool useSafeArea = true,
- Curve curve = Curves.linear,
- double expansionExtent = 10.0,
- bool barrierDismissible = true,
- double maxExtent = double.infinity,
- Color barrierColor = Colors.black54,
- Alignment alignment = Alignment.bottomCenter,
- Duration duration = const Duration(milliseconds: 0),
Implementation
const DraggableBottomSheet({
Key? key,
required this.previewWidget,
required this.backgroundWidget,
required this.expandedWidget,
required this.onDragging,
this.minExtent = 50.0,
this.collapsed = true,
this.useSafeArea = true,
this.curve = Curves.linear,
this.expansionExtent = 10.0,
this.barrierDismissible = true,
this.maxExtent = double.infinity,
this.barrierColor = Colors.black54,
this.alignment = Alignment.bottomCenter,
this.duration = const Duration(milliseconds: 0),
}) : assert(minExtent > 0.0),
assert(expansionExtent > 0.0),
assert(minExtent + expansionExtent < maxExtent),
super(key: key);