<Display another composable layout if one is two w...
# stackoverflow
r
Display another composable layout if one is two wide for screen Context: In the app, there are dynamic questions from the backend asking users to select an option, usually two or three options. The first choice design is to display the options as buttons in a row. But sometimes, the button texts could be very long that the buttons or the texts are not displayed properly on a mobile phone. In this case, the options should be displayed as a dropdown. What tried: To get the width of the button row, I tried to create a mutableState isBtnStyle var, pass a...