Interesting, I’m using an animated composable inside of this sort of implementation
@Composable
fun ProcessTemplate(
onClickNext: (() -> Unit),
onClickBack: (() -> Unit),
step: Int,
title: String,
maximumSteps: Float = 9f,
enabled: Boolean,
bottomButtonHeaderId: Int? = null,
content: @Composable (PaddingValues) -> Unit
) {
AppTopAndBottomBar(
icon = painterResource(id = R.drawable.ic_back_arrow),
title = title,
onClickBack = onClickBack,
enabled = enabled,
onClick = onClickNext,
bottomButtonHeaderId = bottomButtonHeaderId
) {
Column(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier
.fillMaxWidth()
.background(AppColor.Smoke)
) {
Spacer(modifier = Modifier.padding(top = gu3))
ProgressBar(step = step, totalSteps = maximumSteps)
Spacer(modifier = Modifier.padding(top = gu2_5))
content.invoke(it)
}
}
}
Where ProgressBar has an animated progress bar and AppTopAndBottomBar is as the name describes an implementation of Scaffold that has some default implementation that relates to my general project usage