Space Hoisting: Should I use the padding Modifier or the Spacer

By A Mystery Man Writer

🤔 The padding Modifier and the Spacer composable are both valid ways of adding space to a component. Surely, this must be a mistake. Why else would Jetpack Compose expose two ways of doing the same thing?

Compose layout basics, Jetpack Compose

Compose modifiers, Jetpack Compose

SwiftUI Padding Vs Spacing. Having a mix of padding and spacing can…, by Chloe Houlihan, The Tech Collective

General Baseplate - Dimensions tab

Samuel Huang on LinkedIn: Space Hoisting: Should I use the padding Modifier or the Spacer composable?

文系太郎 (@tkAndroid2) / X

Adjusting the space between views — SwiftUI Concepts Tutorials

Space Hoisting: Should I use the padding Modifier or the Spacer composable?

Building an Authentication Form using Jetpack Compose

Android] Space Hoisting, Compose에서 여백을 주는 방법

©2016-2024, doctommy.com, Inc. or its affiliates