From 01a8b4f34c28c6897922ea60b2664a5004e88afa Mon Sep 17 00:00:00 2001 From: Rody Davis Date: Mon, 24 Jun 2024 13:49:38 -0700 Subject: [PATCH] added background color --- CHANGELOG.md | 4 ++++ lib/src/platforms/native.dart | 1 + pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dd2b91..12fe60c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.1 + +* Added transparent background color to the native webview + ## 2.0.0 * Updated dependencies to latest versions diff --git a/lib/src/platforms/native.dart b/lib/src/platforms/native.dart index 3685994..2d59da7 100644 --- a/lib/src/platforms/native.dart +++ b/lib/src/platforms/native.dart @@ -59,6 +59,7 @@ class NativeWebViewState extends WebViewState { super.initState(); controller = wv.WebViewController() ..setJavaScriptMode(wv.JavaScriptMode.unrestricted) + ..setBackgroundColor(Colors.transparent) ..setNavigationDelegate( wv.NavigationDelegate( onPageFinished: (url) { diff --git a/pubspec.yaml b/pubspec.yaml index 75b3a93..3d3571d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: easy_web_view description: A super simple webview for Flutter Web, Mobile and Desktop -version: 2.0.0 +version: 2.0.1 homepage: https://github.com/rodydavis/easy_web_view repository: https://github.com/rodydavis/easy_web_view maintainer: Rody Davis (@rodydavis)