Skip to content

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

@MasterDev001

Description

@MasterDev001

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
                )
            )
        }
    }`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions