diff --git a/mobile_flutter/wlanthermo_flutter_app/lib/main.dart b/mobile_flutter/wlanthermo_flutter_app/lib/main.dart index 23ce36a..7341f1d 100644 --- a/mobile_flutter/wlanthermo_flutter_app/lib/main.dart +++ b/mobile_flutter/wlanthermo_flutter_app/lib/main.dart @@ -137,9 +137,9 @@ class _MyAppState extends State { InAppWebView( key: webViewKey, initialUrlRequest: URLRequest( - url: Uri.dataFromString(widget.htmlString, + url: WebUri.uri(Uri.dataFromString(widget.htmlString, mimeType: 'text/html', - encoding: Encoding.getByName('utf-8'))), + encoding: Encoding.getByName('utf-8')))), initialOptions: options, pullToRefreshController: pullToRefreshController, onWebViewCreated: (controller) {