Skip to content

PageRouteBuilder takes some time to set barrierColor. #24469

@nirav4273

Description

@nirav4273

barrierColor task some to set in PageRouteBuilder. Widget load before barrierColor.
I am used PageRouteBuilder with Navigator
Here is my code

          Navigator.of(context).push(PageRouteBuilder(
              opaque: false,
              barrierDismissible: true,
              barrierColor: Colors.white12,
              pageBuilder: (context,_,__){
                return Center(
                  child: Container(
                    height: 200.0,
                    width: 200.0,
                    decoration: BoxDecoration(
                      color: Colors.white,
                      borderRadius: BorderRadius.circular(5.0)
                    ),
                  )
                );
              }
          ))

ezgif com-video-to-gif

Flutter details

[√] Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 6.3.9600], locale en-IN)
    • Flutter version 0.11.3 at E:\Android\sdk\flutter
    • Framework revision 72bf075e8d (7 days ago), 2018-11-09 20:36:17 -0800
    • Engine revision 5646e86a6f
    • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listf: routesNavigator, Router, and related APIs.found in release: 1.20Found to occur in 1.20frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions