SliverSnap constructor

const SliverSnap({
  1. Key? key,
  2. required Widget expandedContent,
  3. required Widget collapsedContent,
  4. required Widget body,
  5. bool pinned = true,
  6. double collapsedBarHeight = 60.0,
  7. Duration? animationDuration = const Duration(milliseconds: 300),
  8. Curve? animationCurve = Curves.easeInOut,
  9. bool snap = false,
  10. bool floating = false,
  11. bool stretch = false,
  12. double? expandedContentHeight,
  13. PreferredSizeWidget? bottom,
  14. Widget? leading,
  15. List<Widget>? actions,
  16. Widget? backdropWidget,
  17. Color? expandedBackgroundColor,
  18. Color? collapsedBackgroundColor,
  19. ScrollController? scrollController,
  20. ScrollBehavior? scrollBehavior,
  21. CollapsingStateCallback? onCollapseStateChanged,
  22. bool automaticallyImplyLeading = false,
  23. bool forceElevated = false,
  24. 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,
});