AppScreenSwitcher

@Composable
fun AppScreenSwitcher(pagesState: PagesState, theme: AppTheme, contentAlignment: Alignment = Alignment.TopStart, switchAction: @Composable BoxScope.(page: Page) -> Unit)

Central component managing transitions between pages in the application. Slides right (forward) when navigating to higher-level pages, left (backward) when returning.

Parameters

theme

The current app theme for styling.

contentAlignment

How to align overlapping content during transition.

switchAction

Lambda defining content for each page within the animation container.