LiquidGlassIOSNavBarScrollConfiguration class

Configures native iOS nav-bar resizing in response to vertical scrolling.

Pass an instance to LiquidGlassNavBar.iosScrollConfiguration to collapse the native bar after downward scrolling. Upward scrolling, reaching the top, selecting an item, or waiting for idleExpandDuration restores normal size.

Annotations

Constructors

LiquidGlassIOSNavBarScrollConfiguration({double collapsedScale = 0.82, double collapseThreshold = 12, Duration animationDuration = const Duration(milliseconds: 280), Duration idleExpandDuration = const Duration(seconds: 5)})
Creates an iOS scroll-resize configuration.
const

Properties

animationDuration Duration
Duration of the native spring resize animation.
final
collapsedScale double
Scale applied to both width and height while collapsed.
final
collapseThreshold double
Accumulated downward scroll distance required before collapsing.
final
hashCode int
The hash code for this object.
no setteroverride
idleExpandDuration Duration
Time since the last downward update before automatically expanding.
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.
override