Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1. 🔥 변경된 내용
채팅방 말풍선 UI 요구사항 및 설계
2. 📸 스크린샷(선택)
이전
이후
3. 💡 알게된 부분
weight()를 쓸 때 false를 주면..
Modifier.weight(1f, false)
에서 기본값은 true이지만 false를 주게되면 남은 공간을 모두 차지하는 것이 아니라,남은 뷰들의 배치를 파괴하지 않는 선에서 배치한다.
즉, false로 두면 Min값은 해당 컴포넌트의 크기, Max 값은 나머지 뷰들을 배치한 뒤의 남은 공간이다.
반면 기본값인 true를 설정하게되면 우선적으로 배치되며 남은 공간을 모두 차지하게 된다.