Android Compose Hints
MutableStateFlow
MutableStateFlow
// To create an object
val darkTheme = MutableStateFlow(false)
// To change the value
darkTheme.value = true
// To Consume the value
darkTheme.collectAsState().value
Layouts
Layouts
Column - Vertical layout
Row - Horizontal Layout
Stack - Overlapping elements
Constraint Layout
Modifiers
Modifiers
Row { this:// Row Scope
}
Hint: Background color should be added first before padding. Under the module chains
Reference: https://www.youtube.com/watch?v=DDd6IOlH3io