Searched refs:paddingValues (Results 1 – 9 of 9) sorted by relevance
28 private class HorizontalPaddingValues(private val paddingValues: PaddingValues) : PaddingValues { in horizontalValues() constant in com.android.settingslib.spa.framework.compose.HorizontalPaddingValues30 paddingValues.calculateLeftPadding(layoutDirection) in horizontalValues()35 paddingValues.calculateRightPadding(layoutDirection) in horizontalValues()40 private class VerticalPaddingValues(private val paddingValues: PaddingValues) : PaddingValues { constant in com.android.settingslib.spa.framework.compose.VerticalPaddingValues43 override fun calculateTopPadding(): Dp = paddingValues.calculateTopPadding()47 override fun calculateBottomPadding() = paddingValues.calculateBottomPadding()
63 ) { paddingValues -> in paddingValues() method64 Box(Modifier.padding(paddingValues.horizontalValues())) { in paddingValues()65 content(paddingValues.verticalValues()) in paddingValues()93 SettingsScaffold(title = "Display") { paddingValues -> in SettingsScaffoldPreview() method94 Column(Modifier.padding(paddingValues)) { in SettingsScaffoldPreview()
45 SettingsScaffold(title, actions) { paddingValues -> in paddingValues() method47 Spacer(Modifier.height(paddingValues.calculateTopPadding())) in paddingValues()49 Spacer(Modifier.height(paddingValues.calculateBottomPadding())) in paddingValues()
98 ) { paddingValues -> in paddingValues() method101 .padding(paddingValues.horizontalValues()) in paddingValues()102 .padding(top = paddingValues.calculateTopPadding()) in paddingValues()106 content(paddingValues.calculateBottomPadding()) { in paddingValues()
171 private fun combinePaddings(vararg paddingValues: PaddingValues): PaddingValues { in combinePaddings()175 start = paddingValues.maxOfOrNull { it.calculateStartPadding(layoutDirection) } ?: 0.dp, in combinePaddings()176 top = paddingValues.maxOfOrNull { it.calculateTopPadding() } ?: 0.dp, in combinePaddings()177 end = paddingValues.maxOfOrNull { it.calculateEndPadding(layoutDirection) } ?: 0.dp, in combinePaddings()178 bottom = paddingValues.maxOfOrNull { it.calculateBottomPadding() } ?: 0.dp in combinePaddings()
52 SettingsScaffold(title = getTitle(arguments)) { paddingValues -> in <lambda>() method53 Box(Modifier.padding(paddingValues)) { in <lambda>()
81 SettingsScaffold(title = TITLE) { paddingValues -> in <lambda>() method83 actualPaddingValues = paddingValues in <lambda>()
1312 private fun beforeContentPadding(paddingValues: PaddingValues): ContentPaddingInPx { in beforeContentPadding()1315 start = paddingValues.calculateLeftPadding(LayoutDirection.Ltr).toPx(), in beforeContentPadding()1316 top = paddingValues.calculateTopPadding().toPx() in beforeContentPadding()