refactor: use ComponentPadding.None instead no padding

This commit is contained in:
2024-01-16 23:39:23 +08:00
parent 44b065972e
commit 2162830420
3 changed files with 3 additions and 3 deletions

View File

@@ -386,7 +386,7 @@ internal object IconButtonProperties {
val ContentColor = ColorsDescriptor.ThemePrimary
val BackgroundColor = Color.Transparent
const val RippleBounded = false
val Padding = ComponentPadding()
val Padding = ComponentPadding.None
val Shape = ShapesDescriptor.Tertiary
}

View File

@@ -70,7 +70,7 @@ fun Scaffold(
Surface(
modifier = Modifier.fillMaxSize().then(modifier),
colors = colors,
padding = ComponentPadding()
padding = ComponentPadding.None
) {
ScaffoldLayout(
padding = padding,

View File

@@ -59,7 +59,7 @@ private fun FlexiDemoTheme(content: @Composable () -> Unit) {
fun App() {
FlexiDemoTheme {
// Surface will keep the content background color when animation.
Surface(padding = ComponentPadding()) {
Surface(padding = ComponentPadding.None) {
Screen(Screen.Main) { MainScreen() }
Screen(Screen.Secondary) { SecondaryScreen() }
Screen(Screen.LazyList) { LazyListScreen() }