2
WillPopScope(
 onWillPop: () async {
 log('WillPopScope: working in call');
  return new Future(() => true);
 }
 child: Scaffold()
)

I am using go_router for navigating through pages in Web. Here onWillPop seems to be never called. How can we listen when back button pressed on WEB.

Mahboob Ahmed
  • 93
  • 1
  • 7

1 Answers1

2

I'm experiencing the same issue.

Seems like there's ongoing threads regarding this issue on Github. The issue is being tracked here.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 18 '22 at 06:24
  • This should be a comment not answer – Godwin Mathias Jan 04 '23 at 08:03