cupertino library

Cupertino widgets for rendering adaptive actions.

This entrypoint re-exports the platform-neutral core contract and adds CupertinoAdaptiveActions, a width-aware Cupertino primary and overflow action region.

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.
CupertinoAdaptiveActions<T extends Object>
A Cupertino action region backed by ActionLayoutResolver.
CupertinoAdaptiveActionsStyle
Visual and layout configuration used by CupertinoAdaptiveActions.
DefaultActionPlacementDelegate
The standard deterministic implementation of ActionPlacementDelegate.
HiddenAction<T extends Object>
A root excluded from both visible layout regions.
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.
CupertinoActionPresentation
A forced primary-button presentation for CupertinoAdaptiveActions.
HiddenActionReason
The reason a root is unavailable in a resolved layout.
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

CupertinoActionButtonBuilder<T extends Object> = Widget Function(BuildContext context, AdaptiveAction<T> action, VoidCallback? onPressed, CupertinoActionButtonDefaultBuilder<T> defaultBuilder)
Overrides a Cupertino primary action button.
CupertinoActionButtonDefaultBuilder<T extends Object> = Widget Function(BuildContext context, AdaptiveAction<T> action, VoidCallback? onPressed)
Builds the default Cupertino primary action button.
CupertinoActionIconBuilder<T extends Object> = Widget? Function(BuildContext context, AdaptiveAction<T> action)
Builds the Cupertino icon associated with an adaptive action.
CupertinoActionPresentationCallback<T extends Object> = CupertinoActionPresentation? Function(BuildContext context, AdaptiveAction<T> action)
Selects a Cupertino primary-button presentation for one root action.
CupertinoOverflowButtonBuilder = Widget Function(BuildContext context, VoidCallback onPressed, CupertinoOverflowButtonDefaultBuilder defaultBuilder)
Overrides the Cupertino overflow-menu trigger.
CupertinoOverflowButtonDefaultBuilder = Widget Function(BuildContext context, VoidCallback onPressed, {Widget? icon})
Builds the default Cupertino overflow-menu trigger.