Bug fix
This commit is contained in:
@@ -74,8 +74,12 @@ class WebView extends ConsumerWidget {
|
|||||||
isInspectable: false,
|
isInspectable: false,
|
||||||
),
|
),
|
||||||
onUpdateVisitedHistory: (controller, url, androidIsReload) {
|
onUpdateVisitedHistory: (controller, url, androidIsReload) {
|
||||||
controller.canGoBack().then((value) => ref.read(webViewProvider.notifier).setCanGoBack(value));
|
controller.canGoBack().then(
|
||||||
controller.canGoForward().then((value) => ref.read(webViewProvider.notifier).setCanGoForward(value));
|
(value) => context.mounted ? ref.read(webViewProvider.notifier).setCanGoBack(value) : null,
|
||||||
|
);
|
||||||
|
controller.canGoForward().then(
|
||||||
|
(value) => context.mounted ? ref.read(webViewProvider.notifier).setCanGoForward(value) : null,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user