I’m trying to wrap PopScope over child but it can still pop. I used it with go router.
return MaterialApp.router(
...
routerConfig: _router,
...
builder: (context, child) {
....
return PopScope(
canPop: false,
child: ...
);
},
);
What’s wrong with my code? Can anyone explain it?