Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MasterDev001 opened this issue Feb 3, 2024 · 1 comment
Open

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

MasterDev001 opened this issue Feb 3, 2024 · 1 comment

Comments

@MasterDev001
Copy link

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
                )
            )
        }
    }`
@aungkhanthtoo
Copy link

Suggest to try this fork GIGAMOLE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants