Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blur effect does not work over WebView widget #8

Open
arnavxjain opened this issue Dec 16, 2022 · 0 comments
Open

Blur effect does not work over WebView widget #8

arnavxjain opened this issue Dec 16, 2022 · 0 comments

Comments

@arnavxjain
Copy link

The .frosted function from the blur module doesn't seem to work on the webview widget.

image

But it seems to work perfectly with other things behind it in the same stack

simulator_screenshot_2CBE8B3B-6D3C-4BE0-A302-57C5EAD39869

Here is my code

return Scaffold(
      body: Stack(
        children: [
          Container(
            // padding: EdgeInsets.only(top: 100),
            child: WebView(
              initialUrl: url,
              javascriptMode: JavascriptMode.unrestricted,
            ),
          ),
          Container(
            height: 110,
            width: double.infinity,
            child: Text('demo'),
            // color: Colors.black.withOpacity(0.7),
          ).frosted(blur: 20, frostColor: Colors.black, frostOpacity: 0.2)
        ]
      ),
    );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant