Skip to content

Commit 2fda5d6

Browse files
committed
Allow back button to be pressed on dialog displayed over web view.
1 parent 333fc5c commit 2fda5d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/webview_scaffold.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
8484
final pop = await _topMostRoute.willPop();
8585
if (pop == RoutePopDisposition.pop) {
8686
// 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) {
87+
final isOnTopMostRoute = _topMostRoute == ModalRoute.of(context);
88+
if (isOnTopMostRoute) {
8989
webviewReference.close();
9090
}
9191
Navigator.pop(context);

0 commit comments

Comments
 (0)