Using the Modifiers on composables - devrath/urban-octo-jetpack-compose GitHub Wiki
Why we use the modifiers
We use it to modify the properties of a composable
Things like setting the width/height of the composable, adding the background color
We can apply the modifiers to all the types of composable in the jetpack compose. Things like rows/columns, Text, Image basically any type of view(which we call composable in jetpack compose).
So we can change the appearance of anything like how it looks.
The size of the composable like how large/small it looks.
Stuff like adding the margin and padding.
We can make composable interactable like adding the click action, draggable, scrollable, drag/drop, etc... for it.
Other important points
Every composable has a modifier so that we can modify its properties.
Order of the modifiers matters, If we specify the same things in a different order, in turn, get a different result.
Modifiers are applied from outer toward inner layer.