Improved webview

This commit is contained in:
Juan Gilsanz Polo
2024-02-28 17:55:56 +01:00
parent c76eedf6d7
commit 4bf1994142
9 changed files with 85 additions and 108 deletions

View File

@@ -1,13 +1,13 @@
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:webview_flutter/webview_flutter.dart';
class WebViewModel {
InAppWebViewController? inAppWebViewController;
final WebViewController webViewController;
int loadProgress;
bool canGoBack;
bool canGoForward;
WebViewModel({
this.inAppWebViewController,
required this.webViewController,
this.loadProgress = 0,
this.canGoBack = false,
this.canGoForward = false,