material library

Material widgets for rendering adaptive actions.

This entrypoint re-exports the platform-neutral core contract and adds MaterialAdaptiveActions, a width-aware primary and overflow action region. It does not change the core API or make the default package entrypoint depend on Material.

Classes

ActionCollection<T extends Object>
The complete action tree and its root-level placement relationships.
ActionCollectionEntry<T extends Object>
One normalized declaration fragment for ActionCollection.fromEntries.
ActionLayoutConstraints
Available primary space and renderer costs for one resolution pass.
ActionLayoutOption
A renderer-owned way to draw an action in the primary region.
ActionLayoutProfile
The primary-region layouts available for one root action.
ActionLayoutRequest<T extends Object>
A validated snapshot of everything needed for one layout decision.
ActionLayoutResolver
Produces the final, renderer-ready layout for one ActionLayoutRequest.
ActionLayoutResult<T extends Object>
The final renderer input after optional region ordering is applied.
ActionMetadata
User-facing text and renderer lookup data for an action.
ActionPlacementConstraints
Shared placement rules for a set of root actions.
ActionPlacementDelegate
Assigns action roots to primary, overflow, or hidden regions.
ActionPlacementPolicy
The placement rule for one root action.
ActionPlacementResult<T extends Object>
The mutually exclusive regions produced by ActionPlacementDelegate.
AdaptiveAction<T extends Object>
An immutable, platform-neutral action node.
AdaptiveMenuDivider<T extends Object>
A visual separator between groups of adaptive action entries.
AdaptiveMenuEntry<T extends Object>
A platform-neutral entry in an adaptive action declaration.
AutomaticPlacementPreference
Automatic-placement preferences used when primary space is limited.
DefaultActionPlacementDelegate
The standard deterministic implementation of ActionPlacementDelegate.
HiddenAction<T extends Object>
A root excluded from both visible layout regions.
MaterialAdaptiveActions<T extends Object>
A Material primary and overflow action region backed by ActionLayoutResolver.
MaterialAdaptiveActionsStyle
Visual and layout configuration used by MaterialAdaptiveActions.
RendererCapabilities
Interaction features available from an action renderer.
ResolutionDiagnostic
Developer-facing information about a placement constraint.
ResolvedPrimaryAction<T extends Object>
A primary root and the renderer layout selected for it.

Enums

ActionPlacement
The layout region policy for an adaptive action.
ActionPlacementSplitPolicy
Whether actions governed by ActionPlacementConstraints may be placed separately.
HiddenActionReason
The reason a root is unavailable in a resolved layout.
MaterialActionPresentation
A forced primary-button presentation for MaterialAdaptiveActions.
ResolutionDiagnosticCode
Stable machine-readable categories emitted during resolution.

Extension Types

ActionId
The stable identity of an action across layout passes.
ActionLayoutOptionId
A renderer-owned key for one primary-region widget layout.
ActionPlacementConstraintId
The stable identity of root-level placement constraints.
PrimaryRetentionPriority
How strongly an automatic action should be retained in primary.

Typedefs

MaterialActionButtonBuilder<T extends Object> = Widget Function(BuildContext context, AdaptiveAction<T> action, VoidCallback? onPressed, MaterialActionButtonDefaultBuilder<T> defaultBuilder)
Overrides a Material primary action button.
MaterialActionButtonDefaultBuilder<T extends Object> = Widget Function(BuildContext context, AdaptiveAction<T> action, VoidCallback? onPressed)
Builds the default Material primary action button.
MaterialActionIconBuilder<T extends Object> = Widget? Function(BuildContext context, AdaptiveAction<T> action)
Builds the Material icon associated with an adaptive action.
MaterialActionPresentationCallback<T extends Object> = MaterialActionPresentation? Function(BuildContext context, AdaptiveAction<T> action)
Selects a Material primary-button presentation for one root action.
MaterialOverflowButtonBuilder = Widget Function(BuildContext context, VoidCallback onPressed, MaterialOverflowButtonDefaultBuilder defaultBuilder)
Overrides the Material overflow-menu trigger.
MaterialOverflowButtonDefaultBuilder = Widget Function(BuildContext context, VoidCallback onPressed)
Builds the default Material overflow-menu trigger.