SliverSnap class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SliverSnap
- Available extensions
Constructors
-
SliverSnap({Key? key, required Widget expandedContent, required Widget collapsedContent, required Widget sliver, 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}) -
const
Properties
-
actions
→ List<
Widget> ? -
A list of action widgets to display in a row,
after the collapsedContent widget.
final
- animationCurve → Curve?
-
The curve of the animation as the ExpandedContent is collapsing or expanding
final
- animationDuration → Duration?
-
The duration of the animation when the ExpandedContent is collapsing or expanding
final
- automaticallyImplyLeading → bool
-
Provides Control of the AppBar's leading widget.
final
- backdropWidget → Widget?
-
The widget that is shown behind the ExpandedContent
final
- bottom → PreferredSizeWidget?
-
The content that is shown below the appbar.
In most cases it's just the page content.
final
- collapsedBackgroundColor → Color?
-
The background color of the collapsed appbar.
final
- collapsedBarHeight → double
-
The height of the collapsedContent
final
- collapsedContent → Widget
-
The collapsed appbar or content that is shown when state is collapsed
final
- elevation → double
-
The elevation of the app bar.
final
- expandedBackgroundColor → Color?
-
The background color of the expanded appbar.
final
- expandedContent → Widget
-
The content that is shown when the appBar is expanded
final
- expandedContentHeight → double?
-
The height of the ExpandedContent
final
- floating → bool
-
Whether the app bar should become visible as soon as the user scrolls
towards the app bar.
final
- forceElevated → bool
-
Whether to show the shadow appropriate for the elevation even if the
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
The leading widget at the start of the appbar,
final
- onCollapseStateChanged → CollapsingStateCallback?
-
Callback that is called when the ExpandedContent is collapsed or expanded
final
- pinned → bool
-
Whether the appbar will be fixed at the top of the scroll view
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
How the scrolling behaves, either Material or Cupertino.
final
- scrollController → ScrollController?
-
final
- sliver → Widget
-
The content that is shown below the appbar
final
- snap → bool
-
Controls the behavior of a floating app bar when the user scrolls.
final
- stretch → bool
-
Whether the app bar should stretch to fill the over-scroll area.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → _StatelessHookElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited