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 ContentColor = ColorsDescriptor.ThemePrimary
|
||||||
val BackgroundColor = Color.Transparent
|
val BackgroundColor = Color.Transparent
|
||||||
const val RippleBounded = false
|
const val RippleBounded = false
|
||||||
val Padding = ComponentPadding()
|
val Padding = ComponentPadding.None
|
||||||
val Shape = ShapesDescriptor.Tertiary
|
val Shape = ShapesDescriptor.Tertiary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -70,7 +70,7 @@ fun Scaffold(
|
|||||||
Surface(
|
Surface(
|
||||||
modifier = Modifier.fillMaxSize().then(modifier),
|
modifier = Modifier.fillMaxSize().then(modifier),
|
||||||
colors = colors,
|
colors = colors,
|
||||||
padding = ComponentPadding()
|
padding = ComponentPadding.None
|
||||||
) {
|
) {
|
||||||
ScaffoldLayout(
|
ScaffoldLayout(
|
||||||
padding = padding,
|
padding = padding,
|
||||||
|
@@ -59,7 +59,7 @@ private fun FlexiDemoTheme(content: @Composable () -> Unit) {
|
|||||||
fun App() {
|
fun App() {
|
||||||
FlexiDemoTheme {
|
FlexiDemoTheme {
|
||||||
// Surface will keep the content background color when animation.
|
// Surface will keep the content background color when animation.
|
||||||
Surface(padding = ComponentPadding()) {
|
Surface(padding = ComponentPadding.None) {
|
||||||
Screen(Screen.Main) { MainScreen() }
|
Screen(Screen.Main) { MainScreen() }
|
||||||
Screen(Screen.Secondary) { SecondaryScreen() }
|
Screen(Screen.Secondary) { SecondaryScreen() }
|
||||||
Screen(Screen.LazyList) { LazyListScreen() }
|
Screen(Screen.LazyList) { LazyListScreen() }
|
||||||
|
Reference in New Issue
Block a user