AnimatedContent
A container that animates between content for different targetState values. The target content enters while previously-keyed content exits; both are kept in the container's own subtree (an overlapping StackLayout) until each exit settles — the same container-owned retention model as AnimatedVisibility. No DisappearingHost / rendercore machinery is involved.
Content is keyed by contentKey; reusing the same key does not animate. The default transition is a cross-fade.
child(AnimatedContent(targetState = page) { p -> PageContent(p) })Note: the default is visual-only (no layout-affecting size animation). SizeTransform is part of the API surface but the size-morph path is opt-in and not yet wired (pending perf validation); the container currently sizes to the target content.
Parameters
The state whose content should currently be shown.
Declares the transition via AnimatedContentTransitionScope.enter / AnimatedContentTransitionScope.exit. Defaults to a cross-fade.
Identity for a state's content; reusing a key does not animate.
Alignment of overlapping content.
Style applied to the container.
Debug label for the underlying transitions.
Builder for the content of a given state.
Constructors
Functions
This indicates the type of the Object that will be returned by mount.
Compares this component to a different one to check if they are the same
Should not be used! Components should be manually measured only as part of a LayoutState calculation. This will measure a component and set the size in the outputSize object but the measurement result will not be cached and reused for future measurements of this component.
Returns the component's resolve result for a deferred resolution. The framework invokes this instead of the resolve if the component needs to defer its resolution until layout.