BackdropConfig class
Various configurations related to making SlidingPanel look and act like a backdrop widget.
To use features, first set BackdropConfig.enabled to true.
If enabled, a dark shadow is displayed over the PanelContent.bodyContent and various options are enabled.
Constructors
Properties
- closeOnTap → bool
-
Whether to close the panel by tapping the PanelContent.bodyContent.
final
- collapseOnTap → bool
-
Whether to collapse the panel by tapping the
PanelContent.bodyContent, if this is not a Two-state panel.
final
- dragFromBody → bool
-
If true, and SlidingPanel.isDraggable is also true,
this panel can also be moved by dragging on the PanelContent.bodyContent.
final
- draggableInClosed → bool
-
When this is set to true, the panel will be draggable,
even when panel is closed. This also means that content behind
the panel will not be able to receive gestures. (e.g., button taps).
final
- effectInCollapsedMode → bool
-
Whether this panel applies backdrop effects even if
panel's height is below PanelState.collapsed mode.
It means, the dragFromBody, shadowColor, opacity and closeOnTap
will work even in collapsed mode.
final
- enabled → bool
-
Whether this is a Backdrop panel.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- opacity → double
-
Opacity of shadowColor to be applied when panel slides.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color
-
Provide custom shadow color over PanelContent.bodyContent.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited