Skip to content

When closing a bottom sheet, the scrim is animated only after full closure #104

@Radiokot

Description

@Radiokot

When opening a bottom sheet, the scrim is animated in parallel with the sheet – the background fades while the sheet slides;

However, when closing the sheet, the scrim is animated only after full closure – the background stays faded while the sheet slides, and only after it went away the fade out animation is started.

I think this is a bug, as it looks out of pace and also makes the closure longer, which is annoying from the user perspective.

Here is the video showing a sheet opening and closing in a loop. You can see enter animations are parallel, while exit ones are sequential:

Screen_Recording_20250726_111954_4Money.mp4

Here is a code snippet from the video: https://gist.github.com/Radiokot/8db76685fa0662df3b0ed791a09f83ba

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions