🌈 Create new beautiful Compose Gradients with our new wesite ->
Composable Function

AnimatedPane

The root composable of pane contents in a ThreePaneScaffold that supports default motions during pane switching.

AnimatedPane

Source set: Common
@Composable
public fun <
    RoleT : PaneScaffoldRole,
    ScaffoldValueT : PaneScaffoldValue<RoleT>,
> ExtendedPaneScaffoldPaneScope<RoleT, ScaffoldValueT>.AnimatedPane(
    modifier: Modifier = Modifier,
    enterTransition: EnterTransition = motionDataProvider.calculateDefaultEnterTransition(paneRole),
    exitTransition: ExitTransition = motionDataProvider.calculateDefaultExitTransition(paneRole),
    boundsAnimationSpec: FiniteAnimationSpec<IntRect> = PaneMotionDefaults.AnimationSpec,
    dragToResizeHandle: (@Composable (DragToResizeState) -> Unit)? = null,
    shape: Shape = RectangleShape,
    content: (@Composable AnimatedPaneScope.() -> Unit),
)

The root composable of pane contents in a ThreePaneScaffold that supports default motions during pane switching. It's recommended to use this composable to wrap your own contents when passing them into pane parameters of the scaffold functions, therefore your panes can have a nice default animation for free.

See usage samples at:

Parameters

modifier The modifier applied to the AnimatedPane.
enterTransition The EnterTransition used to animate the pane in.
exitTransition The ExitTransition used to animate the pane out.
boundsAnimationSpec The FiniteAnimationSpec used to animate the bounds of the pane when the pane is keeping showing but changing its size and/or position.
dragToResizeHandle The optional handle which will be shown when the pane is levitated and drag-to-resizable; the handle will be draggable and clickable to resize the pane freely or among collapsed, partially expanded, and expanded states. See rememberDragToResizeState for more details about how to implement the drag-to-resize behavior.
shape The shape of the pane, which will also be applied to the shadow when the pane is levitated.
content The content of the AnimatedPane. Also see AnimatedPaneScope.

AnimatedPane

Source set: Common
@Deprecated(
    message = "Keep the old function for binary compatibility",
    level = DeprecationLevel.HIDDEN,
)
@Composable
public fun <
    RoleT : PaneScaffoldRole,
    ScaffoldValueT : PaneScaffoldValue<RoleT>,
> ExtendedPaneScaffoldPaneScope<RoleT, ScaffoldValueT>.AnimatedPane(
    modifier: Modifier = Modifier,
    enterTransition: EnterTransition = motionDataProvider.calculateDefaultEnterTransition(paneRole),
    exitTransition: ExitTransition = motionDataProvider.calculateDefaultExitTransition(paneRole),
    boundsAnimationSpec: FiniteAnimationSpec<IntRect> = PaneMotionDefaults.AnimationSpec,
    content: (@Composable AnimatedPaneScope.() -> Unit),
): Unit

The root composable of pane contents in a ThreePaneScaffold that supports default motions during pane switching. It's recommended to use this composable to wrap your own contents when passing them into pane parameters of the scaffold functions, therefore your panes can have a nice default animation for free.

See usage samples at:

Parameters

modifier The modifier applied to the AnimatedPane.
enterTransition The EnterTransition used to animate the pane in.
exitTransition The ExitTransition used to animate the pane out.
boundsAnimationSpec The FiniteAnimationSpec used to animate the bounds of the pane when the pane is keeping showing but changing its size and/or position.
content The content of the AnimatedPane. Also see AnimatedPaneScope.

AnimatedPane

Source set: Common
@Deprecated(
    message = "Keep the old function for binary compatibility",
    level = DeprecationLevel.HIDDEN,
)
@Composable
public fun <
    RoleT : PaneScaffoldRole,
    ScaffoldValueT : PaneScaffoldValue<RoleT>,
> ExtendedPaneScaffoldPaneScope<RoleT, ScaffoldValueT>.AnimatedPane(
    modifier: Modifier = Modifier,
    enterTransition: EnterTransition = motionDataProvider.calculateDefaultEnterTransition(paneRole),
    exitTransition: ExitTransition = motionDataProvider.calculateDefaultExitTransition(paneRole),
    boundsAnimationSpec: FiniteAnimationSpec<IntRect> = PaneMotionDefaults.AnimationSpec,
    dragToResizeHandle: (@Composable (DragToResizeState) -> Unit)? = null,
    content: (@Composable AnimatedPaneScope.() -> Unit),
): Unit

The root composable of pane contents in a ThreePaneScaffold that supports default motions during pane switching. It's recommended to use this composable to wrap your own contents when passing them into pane parameters of the scaffold functions, therefore your panes can have a nice default animation for free.

See usage samples at:

Parameters

modifier The modifier applied to the AnimatedPane.
enterTransition The EnterTransition used to animate the pane in.
exitTransition The ExitTransition used to animate the pane out.
boundsAnimationSpec The FiniteAnimationSpec used to animate the bounds of the pane when the pane is keeping showing but changing its size and/or position.
dragToResizeHandle The optional handle which will be shown when the pane is levitated and drag-to-resizable; the handle will be draggable and clickable to resize the pane freely or among collapsed, partially expanded, and expanded states. See rememberDragToResizeState for more details about how to implement the drag-to-resize behavior.
content The content of the AnimatedPane. Also see AnimatedPaneScope.

Content updated: