The opacity of the backdrop when the panel is fully open.
This value can range from 0.0 to 1.0 where 0.0 is completely transparent
and 1.0 is completely opaque.
The default state of the panel; either PanelState.OPEN or PanelState.CLOSED.
This value defaults to PanelState.CLOSED which indicates that the panel is
in the closed position and must be opened. PanelState.OPEN indicates that
by default the Panel is open and must be swiped closed by the user.
Optional persistent widget that floats above the panel and
attaches to the bottom of the panel. Content at the bottom of the panel
will be covered by this widget. Add padding to the bottom of the panel
to avoid coverage.
Optional persistent widget that floats above the panel and attaches
to the top of the panel. Content at the top of the panel will be covered
by this widget. Add padding to the bottom of the panel to
avoid coverage.
Allows toggling of the draggability of the SlidingUpPanel.
Set this to false to prevent the user from being able to drag
the panel up and down. Defaults to true.
If non-null, this callback
is called as the panel slides around with the
current position of the panel. The position is a double
between 0.0 and 1.0 where 0.0 is fully collapsed and 1.0 is fully open.
The Widget that slides into view. When the
panel is collapsed and if collapsed is null,
then top portion of this Widget will be displayed;
otherwise, collapsed will be displayed overtop
of this Widget. If panel and panelBuilder are both non-null,
panel will be used.
WARNING: This feature is still in beta and is subject to change without
notice. Stability is not gauranteed. Provides a ScrollController and
ScrollPhysics to attach to a scrollable object in the panel that links
the panel position with the scroll position. Useful for implementing an
infinite scroll behavior. If panel and panelBuilder are both non-null,
panel will be used.
Allows for specifying the extent of the parallax effect in terms
of the percentage the panel has slid up/down. Recommended values are
within 0.0 and 1.0 where 0.0 is no parallax and 1.0 mimics a
one-to-one scrolling effect. Defaults to a 10% parallax.
Set to false to not to render the sheet the panel sits upon.
This means that only the body, collapsed, and the panel
Widgets will be rendered.
Set this to false if you want to achieve a floating effect or
want more customization over how the sliding panel
looks like.
Either SlideDirection.UP or SlideDirection.DOWN. Indicates which way
the panel should slide. Defaults to UP. If set to DOWN, the panel attaches
itself to the top of the screen and is fully opened when the user swipes
down on the panel.
A point between minHeight and maxHeight that the panel snaps to
while animating. A fast swipe on the panel will disregard this point
and go directly to the open/close position. This value is represented as a
percentage of the total animation distance (maxHeight - minHeight),
so it must be between 0.0 and 1.0, exclusive.