79153383

Date: 2024-11-03 18:38:17
Score: 0.5
Natty:
Report link

Inside onPopInvokedWithResult you should do:

if (didPop) return;

final shouldPop = await webViewController.canGoBack();

if (shouldPop) {
   webViewController.goBack();
}

Check this from Flutter's documentation. The example is different, but the logic is similar.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: A.Ktns