onebone/compose-collapsing-toolbar

toolbar doesn't stay fully open when the screen is opened

Opened this issue · 1 comments

toolbar doesn't stay fully open when the screen is opened

video_2024-02-03_22-22-55.mp4

`val toolbarState = rememberCollapsingToolbarScaffoldState()

    if (state.insight.value != null) {

        CollapsingToolbarScaffold(
            modifier = Modifier
                .fillMaxSize()
                .background(CodeHubColors.Background),
            state = toolbarState,
            scrollStrategy = ScrollStrategy.ExitUntilCollapsed,
            toolbar = {
                BookInsightsTopBarView.Default(
                    scope = this,
                    data = state.insight.value!!,
                    state = toolbarState,
                    onClickBack = listeners::onBackPressed
                )
            }
        ) {
            BookInsightsContentView.Default(
                desc = state.insight.value!!.description,
                chapters = state.insight.value!!.chapters,
                onClickRead = listeners::openDetails,
                modifier = Modifier.padding(
                    start = 20.dp, end = 20.dp, top = 10.dp, bottom = 20.dp
                )
            )
        }
    }`

Suggest to try this fork GIGAMOLE