Merge pull request #233 from ente-io/webview_transparent_bg
Set webview bg as transparent
This commit is contained in:
commit
bfc24d3370
1 changed files with 3 additions and 0 deletions
|
@ -22,8 +22,11 @@ class _WebPageState extends State<WebPage> {
|
|||
title: Text(widget.title),
|
||||
actions: [_hasLoadedPage ? Container() : loadWidget],
|
||||
),
|
||||
backgroundColor: Colors.transparent,
|
||||
body: InAppWebView(
|
||||
initialUrlRequest: URLRequest(url: Uri.parse(widget.url)),
|
||||
initialOptions: InAppWebViewGroupOptions(
|
||||
crossPlatform: InAppWebViewOptions(transparentBackground: true)),
|
||||
onLoadStop: (c, url) {
|
||||
setState(() {
|
||||
_hasLoadedPage = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue