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 also exposes the shared action-region layout contract.

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.
ActionLabelLayout
Constrains one primary action label without changing its placement policy.
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.
ActionRegionExtent
Describes whether one action slot is fixed or flexible.
ActionRegionFixedExtent
A fixed action-slot extent.
ActionRegionFixedGapLayoutEntry
A structural fixed-gap entry in a layout plan.
ActionRegionFlexGapLayoutEntry
A weighted, zero-minimum flex-gap entry in a layout plan.
ActionRegionFlexibleExtent
A weighted flexible action-slot extent.
ActionRegionLayoutDelegate
Provides the two-stage layout policy around one Core resolution.
ActionRegionLayoutEntry
One validated entry in an action-region layout plan.
ActionRegionLayoutInput
Input available after the single Core resolution for a layout pass.
ActionRegionLayoutPlan
An immutable requested ordering and allocation plan for one region.
ActionRegionLayoutReservation
A structural width reservation made before Core resolution.
ActionRegionLayoutReservationInput
Input available before the single Core resolution for a layout pass.
ActionRegionLayoutSlot
A read-only description of one resolved package-owned slot.
ActionRegionSlotLayoutEntry
A package-owned slot entry in a layout plan.
ActionTooltipPolicy
Selects the rendered surfaces that show an action tooltip.
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.
ActionRegionFlexFit
Whether a flexible action slot must consume its allocated share.
ActionRegionMainAxisDistribution
The built-in horizontal distribution used by one action region.
ActionTooltipSurface
A rendered surface that can show an action tooltip.
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.
ActionRegionLayoutSlotId
Identifies one package-owned slot in an action-region layout plan.
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.
MaterialActionLabelLayoutCallback<T extends Object> = ActionLabelLayout Function(BuildContext context, AdaptiveAction<T> action)
Selects the single-line label layout for one Material root action.
MaterialActionMenuBuilder<T extends Object> = List<Widget>? Function(BuildContext context, AdaptiveAction<T> action)
Builds the complete Material menu content for one 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.