Skip to content

Material Bottom Sheet Reveal/Dismiss animation should use a curved animation #19469

@sir-boformer

Description

@sir-boformer

Right now the scaffold uses the linear value of the animation controller, which results in a rather abrupt linear animation:

heightFactor: widget.animationController.value,

In the Material Design samples, you can clearly see that the bottom sheets are animated smoothly: https://material.io/design/components/sheets-bottom.html#behavior

The problem is that the animation controller is also to apply the movement caused by dragging the finger, which requires linear interpolation.

Metadata

Metadata

Assignees

Labels

a: fidelityMatching the OEM platforms betterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions