compose-intro-showcase
compose-intro-showcase copied to clipboard
Repeats on each recomposition
It repeats showing Showcase on each recomposition even though the view that has its modifier does not get recomposed It also triggers twice anytime you enter a screen with compose navigation and without any recomposition
@Composable
internal fun ProfileScreen(
modifier: Modifier = Modifier
) {
var showAppIntro by remember {
mutableStateOf(true)
}
IntroShowcase(
showIntroShowCase = showAppIntro,
onShowCaseCompleted = { showAppIntro = false },
dismissOnClickOutside = true,
) {
Scaffold(
modifier = modifier,
containerColor = MaterialTheme.colorScheme.tertiary,
contentColor = MaterialTheme.colorScheme.onTertiary
) { insets ->
Text(
modifier = Modifier
.padding(insets)
.introShowCaseTarget(
index = 0,
content = {
Text(text = "test")
}
),
text = "Target view"
)
}
}
}
I have the same issue. @MHKalantarian Have you found a way to solve it on your side?
Any solution for this issue ?