GlassTabPillAnchor enum
Controls how the tab pill is anchored horizontally during the morph animation in GlassSearchableBottomBar.
This only affects the tab pill's position. The search pill position is always computed from the trailing edge.
Values
- start → const GlassTabPillAnchor
-
The tab pill is pinned to the leading (left) edge — the right edge retracts as the pill collapses. This is the default and matches the classic iOS News / Safari behaviour.
- center → const GlassTabPillAnchor
-
The tab pill scales from its centre — both edges collapse inward symmetrically as the pill morphs into the collapsed search state, and expand outward symmetrically when search closes.
Use this when you want a more balanced, symmetrical animation. Note that while searching, the search pill will be slightly narrower than in start mode because it starts after the centred collapsed tab pill.
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<
GlassTabPillAnchor> - A constant List of the values in this enum, in order of their declaration.