Skip to content

[ModalBottomSheet] Allow configuring the max height ratio when isScrollControlled is false #129690

@AlexV525

Description

@AlexV525

Is there an existing issue for this?

Use case

There is a default value when isScrollControlled is false for sheets:

maxHeight: isScrollControlled
? constraints.maxHeight
: constraints.maxHeight * 9.0 / 16.0,

The value is hard-coded and not allowed to be configured. In order to apply custom constraints in the scenario, users must wrap a ConstrainedBox.

Proposal

Expose the value as a parameter scrollControlDisabledMaxHeightRatio for:

  • _BottomSheetLayoutWithSizeListener
  • _RenderBottomSheetLayoutWithSizeListener
  • _ModalBottomSheet
  • ModalBottomSheetRoute
  • showModalBottomSheet

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions