https://github.com/programadorthi/jetpack-compose-studies
Project used in lives to study Jetpack Compose
https://github.com/programadorthi/jetpack-compose-studies
Last synced: 2 months ago
JSON representation
Project used in lives to study Jetpack Compose
- Host: GitHub
- URL: https://github.com/programadorthi/jetpack-compose-studies
- Owner: programadorthi
- Created: 2021-01-20T17:30:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-25T01:24:21.000Z (over 5 years ago)
- Last Synced: 2025-12-29T02:21:18.706Z (6 months ago)
- Language: Kotlin
- Size: 2.96 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jetpack-compose-studies
Project to study Jetpack Compose with subscribers on Twitch lives.
# Things we had discovered in our study sections
1. Modifiers order is very important. Changing the order can create unexpected behaviors;
2. `RectangleShape` is the default shape in some modifiers;
3. By default compose nodes consumes minimum space as possible. If you needs increase width/height you have to do that using a modifier as `fillMaxSize`;
4. Applying `border` modifier also do a `clip`. So we don't need to apply a clip before apply a border;
5. Modifiers can be combined using `then()` or operator `+` creating a chain of modifiers. This is a good expansion between public and private applied modifiers.
6. There is two ways to load an image resource.
- `imageResource` load image in a synchronous way. Easy to use.
- `loadImageResource` is the asynchronous version. More verbose.
7.