BottomBarVisibility class sealed
Defines how the SheetContentScaffold.bottomBar of SheetContentScaffold should be displayed in response to the bottom inset caused by system UI.
If ignoreBottomInset is true
, the bottom bar will move up
along with the SheetContentScaffold.body when the bottom
value of
MediaQueryData.viewInsets increases due to system UI elements,
such as the on-screen keyboard.
If false
, the bottom bar will be partially or entirely hidden,
depending on the bottom
value of MediaQueryData.viewInsets.
For example, if the bottom
value of MediaQueryData.viewInsets
is half the height of the bottom bar, only half of the bottom bar
will remain visible. The default value is false
.
Constructors
- BottomBarVisibility.always({bool ignoreBottomInset})
-
The bottom bar is always visible regardless of the sheet's offset.
constfactory
- BottomBarVisibility.conditional({bool ignoreBottomInset, required bool isVisible(SheetMetrics), Duration duration, Curve curve})
-
The visibility of the bottom bar is controlled by the
isVisible
callback.constfactory -
BottomBarVisibility.controlled({bool ignoreBottomInset, required Animation<
double> animation}) -
The visibility of the bottom bar is controlled by the
animation
.constfactory - BottomBarVisibility.natural({bool ignoreBottomInset})
-
The bottom bar is displayed naturally, based on the sheet's offset.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreBottomInset → bool
-
Whether the bottom bar should be visible when the
bottom
of MediaQueryData.viewInsets is increased by system UI elements, such as the onscreen keyboard.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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