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

calculateDefaultEnterTransition

Calculates the default EnterTransition of the pane associated to the given role when it's showing.

calculateDefaultEnterTransition

Source set: Common
public fun <Role : PaneScaffoldRole> PaneScaffoldMotionDataProvider<Role>
    .calculateDefaultEnterTransition(role: Role): EnterTransition

Calculates the default EnterTransition of the pane associated to the given role when it's showing. The PaneMotion and pane measurement data provided by PaneScaffoldMotionDataProvider will be used to decide the transition type and relevant values like sliding offsets.

Parameters

role the role of the pane that is supposed to perform the EnterTransition when showing.

Content updated: