SliverSnap constructor
const
SliverSnap({
- Key? key,
- required Widget expandedContent,
- required Widget collapsedContent,
- required Widget body,
- bool pinned = true,
- double collapsedBarHeight = 60.0,
- Duration? animationDuration = const Duration(milliseconds: 300),
- Curve? animationCurve = Curves.easeInOut,
- bool snap = false,
- bool floating = false,
- bool stretch = false,
- double? expandedContentHeight,
- PreferredSizeWidget? bottom,
- Widget? leading,
- List<
Widget> ? actions, - Widget? backdropWidget,
- Color? expandedBackgroundColor,
- Color? collapsedBackgroundColor,
- ScrollController? scrollController,
- ScrollBehavior? scrollBehavior,
- CollapsingStateCallback? onCollapseStateChanged,
- bool automaticallyImplyLeading = false,
- bool forceElevated = false,
- double elevation = 0.0,
Implementation
const SliverSnap({
super.key,
required this.expandedContent,
required this.collapsedContent,
required this.body,
this.pinned = true,
this.collapsedBarHeight = 60.0,
this.animationDuration = const Duration(milliseconds: 300),
this.animationCurve = Curves.easeInOut,
this.snap = false,
this.floating = false,
this.stretch = false,
this.expandedContentHeight,
this.bottom,
this.leading,
this.actions,
this.backdropWidget,
this.expandedBackgroundColor,
this.collapsedBackgroundColor,
this.scrollController,
this.scrollBehavior,
this.onCollapseStateChanged,
this.automaticallyImplyLeading = false,
this.forceElevated = false,
this.elevation = 0.0,
});