GlassVerticalBarBehavior enum
Whether a GlassNavigationShell moves its bars into iPhone Duo's vertical bar strip.
Mirrors UIKit's UIViewController.preferredVerticalBarBehavior and
SwiftUI's toolbarVerticalBehavior(_:). Set on the shell rather than per
screen for the reason UIKit reads it from the container: .disabled only
takes effect natively when applied to the NavigationStack, never to the
page pushed into it.
Values
- automatic → const GlassVerticalBarBehavior
-
Bars move into the strip wherever the device reserves one.
On iPhone Duo that is the outer display in every orientation and the inner display in landscape; everywhere else nothing changes.
- disabled → const GlassVerticalBarBehavior
-
Bars stay horizontal, even where the device reserves a strip.
This only moves the package's bars. The strip itself is reserved by the system for as long as the app's view controller accepts it, so the content area still ends at the strip. To give the whole width back, override
preferredVerticalBarBehaviorto return.disabledin aFlutterViewControllersubclass: the status bar then returns to the top andMediaQuery.viewPaddingbecomes(0, 82, 0, 34).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
GlassVerticalBarBehavior> - A constant List of the values in this enum, in order of their declaration.