SafaehBottomNavMetrics class

Shared geometry for a floating bottom navigation bar and the content or controls that need to sit above it.

The visual inset is intentionally smaller than the content inset: a FAB or compact overlay only needs to clear the bar, while a scrollable list needs extra trailing room so its last row can be read comfortably.

Constructors

SafaehBottomNavMetrics({required bool requestedVisible, required bool keyboardVisible, required bool hideWhenKeyboardVisible, required double safeAreaBottom, double visualClearance = defaultVisualClearance, double contentClearance = defaultContentClearance})
const
SafaehBottomNavMetrics.fromContext(BuildContext context, {bool visible = true, bool hideWhenKeyboardVisible = true, double visualClearance = defaultVisualClearance, double contentClearance = defaultContentClearance})
Resolves metrics from the current viewport.
factory

Properties

contentClearance → double
final
contentInset → double
Extra trailing room for scrollable content, excluding the system inset.
no setter
contentInsetWithSafeArea → double
Trailing room for scrollable content including the system safe area.
no setter
hashCode → int
The hash code for this object.
no setteroverride
hideWhenKeyboardVisible → bool
final
keyboardVisible → bool
final
requestedVisible → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeAreaBottom → double
final
visible → bool
Whether the bar should occupy space right now.
no setter
visualClearance → double
final
visualInset → double
Extra visual clearance, excluding the system safe-area inset.
no setter
visualInsetWithSafeArea → double
Visual clearance including the system safe-area inset.
no setter

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.
override