Class

AdaptStrategy.Reflow

Indicate the associated pane should be reflowed when certain conditions are met.

reflowAdaptStrategySample

@OptIn(ExperimentalMaterial3AdaptiveApi::class)
@Preview
@Composable
fun <T> reflowAdaptStrategySample(): ThreePaneScaffoldNavigator<T> =
    rememberListDetailPaneScaffoldNavigator<T>(
        adaptStrategies =
            ListDetailPaneScaffoldDefaults.adaptStrategies(
                extraPaneAdaptStrategy =
                    AdaptStrategy.Reflow(reflowUnder = ListDetailPaneScaffoldRole.Detail)
            )
    )

Last updated: