Skip to content

ModalRoute / ModalBarrier customization #21039

@ened

Description

@ened

Currently, ModalRoutes created using showDialog or showGeneralDialog do not allow full customization of the underlying ModalBarrier.

It’s only possible to change the background color, however I’d like full control over the animated widget in order to build my own. For example, a customer requested to apply Gaussian blur to the barrier.

The current solution involves creating the barrier myself and not using the neat routing system.

So the same way that showGeneralRoute has a PageBuilder Parameter, it could gain a BarrierBuilder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityf: routesNavigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions