mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
refactor: use ComponentPadding.None instead no padding
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -70,7 +70,7 @@ fun Scaffold(
|
||||
Surface(
|
||||
modifier = Modifier.fillMaxSize().then(modifier),
|
||||
colors = colors,
|
||||
padding = ComponentPadding()
|
||||
padding = ComponentPadding.None
|
||||
) {
|
||||
ScaffoldLayout(
|
||||
padding = padding,
|
||||
|
@@ -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() }
|
||||
|
Reference in New Issue
Block a user