title: WillPopScope does not work for me, flutter
body: <p>I have 4 different items in my bottom navigation menu and in one case I need to navigate to one page and delete all the pages in my stack so that I use this code to navigate my another screen;</p>
  
  <pre><code>Navigator.pushAndRemoveUntil(
    context,
    PageRouteBuilder(
      pageBuilder: (context, anim1, anim2) =&gt; AnamenuTemelSayfa(currentIndex: 2),
      transitionsBuilder: (context, anim1, anim2, child) =&gt; Container(child: child),
      transitionDuration: Duration(milliseconds: 200),
    ),
    (_) =&gt; true,
  );
  </code></pre>
  
  <p>After this navigation when I hit the back button on the physical device it backs to the last screen that I've just came, to handle with this problem I change true value into false but when I do it after this navigation event in any pages of the app on the physical device back button does not work so that I try to do another thing is that to wrap second page with WillPopScope not to go back I've defined this code;</p>
  
  <pre><code>//Second page
  onWillPop: () async {
    return await Future.value(false);
  },
  </code></pre>