AdaptiveMetricLayout
fun AdaptiveMetricLayout(chartPart: @Composable (Modifier) -> Unit, listPart: @Composable (Modifier) -> Unit, modifier: Modifier = Modifier, isChartExpanded: Boolean = false)(source)
An adaptive layout for metric screens. Splits side-by-side when calculatePaneScaffoldDirective allows more than one horizontal partition and the layout's own width is in the expanded size class, and stacks otherwise. The second check matters when the screen is an extra pane: the window is expanded but the pane is not. When isChartExpanded is true, the card list is hidden and the chart fills the available space.