Hi, Is there any way i can do conditional renderin...
# compose
h
Hi, Is there any way i can do conditional rendering for the compose functions ?
l
You can use any control flow you normally would with kotlin, such as 'if' or 'while' etc
h
@Leland Richardson [G] Basically, i was looking something e.g. there are two composable one button and other text. Only button is visible at the screen and onClick for button, it should disappear and only text should appear.
@Leland Richardson [G] To give you more perspective, actually i have created two composable function - one is a phone dialer screen with keys and dial button and other is InCallScreen with hold/unhold and end button. Basically, i was looking into how i can navigate between these two. Is it some navigation i have to do between these two screen or can i just do some condition rendering like if call button is pressed then render InCallScreen composable.