Class

AdaptStrategy.Reflow

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

reflowAdaptStrategySample

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