Search code examples
androidkotlinandroid-jetpack-composechain

Jetpack Compose: Button resizing based on parent node


What is the process by which button resize and share space evenly based on the size of the container they are in? What kinds of modifiers do you need to introduce?

enter image description here


Solution

  • There are three types I can immediately think of. Here are the instructions for each: