Space Hoisting: Should I use the padding Modifier or the Spacer composable?
![](https://www.jetpackcompose.app/static/e11b706647232c630afb5161ca6930aa/67ded/hero.webp)
🤔 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?
![](https://www.jetpackcompose.app/static/476e0fa534fbefede54b20865a8d806b/1b035/debug-recomposition-hero.jpg)
How can I debug recompositions in Jetpack Compose?
![](https://miro.medium.com/v2/resize:fit:860/format:webp/1*pLrZk9cVK7SnEs2EuWOg8w.png)
Academy Minsk News & Announcements – Telegram
![](https://www.tutorialkart.com/wp-content/uploads/2021/04/spacer-3-490x1024.png)
Spacer Tutorial - Android Compose
![](https://aster.cloud/wp-content/uploads/2023/05/image-5.png)
Illuminating Interactions: Visual State In Jetpack Compose - aster
![](https://files.mastodon.social/media_attachments/files/111/931/121/412/784/508/original/d578071edff334c8.png)
GeePawHill: The tree view is just a wrappe… - Mastodon
![](http://capsistema.com.br/wp-content/uploads/2024/01/ImagemNova2-2.png)
State Management no Jetpack Compose - Cap Sistema
![](https://www.jetpackcompose.app/static/eff28b7deaf61304baf3086556d2761b/b64d1/snippets_poster.png)
The #1 destination for all things Jetpack Compose
![](https://img1.daumcdn.net/thumb/C176x176/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbKSZYN%2FbtrL0Um4oMt%2FPw73IRK1a38u1yBfCbNC71%2Fimg.png)
Android] Space Hoisting, Compose에서 여백을 주는 방법
![](https://habrastorage.org/r/w1560/getpro/habr/upload_files/803/1ca/7fe/8031ca7fe3b1b090c85dcaeba72be32d.png)
Academy Minsk News & Announcements – Telegram
![](https://www.jetpackcompose.app/static/94c7d37a2eb4365e6076d431f01a560f/b64d1/faq_poster.png)
The #1 destination for all things Jetpack Compose
![](http://capsistema.com.br/wp-content/uploads/2024/01/1_oFGPDmJq_uUp0j0AOzHG9Q.gif)
State Management no Jetpack Compose - Cap Sistema
![](https://www.jetpackcompose.app/static/a2457e532d0248a03eaae9e39ad5d376/b64d1/JetpackComposeIfThen_Preview_Image.png)
The #1 destination for all things Jetpack Compose