We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333fc5c commit 2fda5d6Copy full SHA for 2fda5d6
lib/src/webview_scaffold.dart
@@ -84,8 +84,8 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
84
final pop = await _topMostRoute.willPop();
85
if (pop == RoutePopDisposition.pop) {
86
// Close the webview if it's on the route at the top of the stack.
87
- final isEditorOnTopMostRoute = _topMostRoute == ModalRoute.of(context);
88
- if (isEditorOnTopMostRoute) {
+ final isOnTopMostRoute = _topMostRoute == ModalRoute.of(context);
+ if (isOnTopMostRoute) {
89
webviewReference.close();
90
}
91
Navigator.pop(context);
0 commit comments