Skip to content

Content padding for scrolling below the navigation bar #45

@PhilippNowak96

Description

@PhilippNowak96

I am not sure if there is currently another way to achieve that but I want the content to scroll under the navigation bar which it does by default when removing the WindowInsets correctly but then the bottom padding is not fully controllable.

I am looking for some contentPadding to apply to the PdfView. Normally I would add a wrapper element around the view itself, add the verticalScroll modifier to the wrapper and apply navigationBarsPadding() to the view so that at the end of scrolling the last bit of content can scroll until it's above the navigation bar.

Since PdfView is a LazyColumn and does some scrolling stuff on its own, this does not seem to be possible. When I try to do so it's not crashing but I don't see any content anymore.

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