barrierColor property

Color barrierColor

The color to use for the modal barrier. If this is null, the barrier will be transparent.

The modal barrier is the scrim that is rendered behind each route, which generally prevents the user from interacting with the route below the current route, and normally partially obscures such routes.

For example, when a dialog is on the screen, the page below the dialog is usually darkened by the modal barrier.

The color is ignored, and the barrier made invisible, when offstage is true.

While the route is animating into position, the color is animated from transparent to the specified color.

See also:

barrierDismissible, which controls the behavior of the barrier when tapped. ModalBarrier, the widget that implements this feature.


Color get barrierColor;