Update Composable when input variable change
Have a beginners question - probably I don’t understand some fundamentals of Composable.
I have a Composable with a BottomSheetScaffold. Within the Sheet I have a Switch which changes a variable that is input to next composable.
fun DuetScreen(
duet: Int,
scaffoldState: BottomSheetScaffoldState,
modifier: Modifier = Modifier
) {
var trp1 by remember { mutableStateOf(true) }
var trp2 by remember { mutableStateOf(true) }
BottomSheetScaffold(
scaffoldState =...