UiContourAccessoryRelease class
Persistent chrome releasing an independent accessory surface — the second Contour interaction model, distinct from UiContourRelease's single shared capsule.
A bottom bar and a search accessory are two separate surfaces with
no common parent container — they share only color tokens and one
progress timeline (see doc/contour.md). On activation, the bar
recedes by exactly the width the accessory claims (its trailing items
fading as they lose room) while the accessory grows from the search
trigger's position to fill the freed space, with a bounded backdrop
blur — the one place in Contour a blur is used, because here it
legitimately separates two independent surfaces rather than papering
over weak geometry (contrast with the retired glow path, see
doc/contour.md).
Both surfaces keep their own persistent identity: the bar is one call site throughout, and the accessory is a second call site throughout — never a crossfaded pair standing in for either.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- UiContourAccessoryRelease
Constructors
-
UiContourAccessoryRelease({Key? key, required List<
UiContourBarItem> items, Widget searchIcon = const Icon(LucideIcons.search), String searchSemanticsLabel = 'Search', UiIntent intent = UiIntent.neutral, Widget? accessoryChild, double height = 56, bool? expanded, ValueChanged<bool> ? onExpandedChanged}) -
const
Properties
- accessoryChild → Widget?
-
Content hosted inside the expanded accessory surface (e.g. a text
field). Defaults to an empty box if omitted.
final
- expanded → bool?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
final
- intent → UiIntent
-
final
-
items
→ List<
UiContourBarItem> -
Bar items shown alongside the search trigger while collapsed. These
fade as the bar recedes — they are not available while the accessory
is active.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onExpandedChanged
→ ValueChanged<
bool> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchIcon → Widget
-
final
- searchSemanticsLabel → String
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< UiContourAccessoryRelease> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited