Git Product home page Git Product logo

blur's People

Contributors

jagrit-idc avatar jagritjkh avatar kedulu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blur's Issues

Animated bluring

Is there a way to do the blurring/frosting with animation?
With duration and curve, etc

There will be a line between two identical Blur components.

  • describe:

Place two blur components next to each other,Will appear.

  • image:

QQ截图20240226191436

  • code:
Scaffold(
      appBar: AppBar(
          title: const Text('BlurBox', style: TextStyle(color: Colors.black))),
      backgroundColor: Colors.white,
      body: Column(
        children: [
          Blur(
            blur: 2.5,
            blurColor: Theme.of(context).primaryColor,
            child: Padding(
              padding: const EdgeInsets.all(8.0),
              child: Container(
                width: double.infinity,
                height: 100,
                alignment: Alignment.center,
                child: const Text(
                  'Blur1',
                  style: TextStyle(color: Colors.black, fontSize: 16),
                ),
              ),
            ),
          ),
          Blur(
            blur: 2.5,
            blurColor: Theme.of(context).primaryColor,
            child: Padding(
              padding: const EdgeInsets.all(8.0),
              child: Container(
                width: double.infinity,
                height: 100,
                alignment: Alignment.center,
                child: const Text(
                  'Blur2',
                  style: TextStyle(color: Colors.black, fontSize: 16),
                ),
              ),
            ),
          )
        ],
      ),
    );
    ```

Blur only the widget child and not the background

Hi ! :)
First of all, thank you for your awesome plugin !
I have a question
I have a specific widget, a bar chart with a transparent background, and i want to make it blurry.
Things that i succeed with your plugin, but saddly, it also blurred everything behind it, such as my view background image.
Can you tell me please how to blur only the widget and not things behind it ?
Thank you !

example

Blur effect does not work over WebView widget

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)
        ]
      ),
    );

performance issue when using Blur as an image item in ListView.builder

Hi, I am using Blur widget as an item of my ListView.builder . it makes my app laggy even in release mode. here is the code below I use for Blur. is there a workaround for this?

Blur(
            blur: 2,
            child: CachedNetworkImage(
              imageUrl: thumbnailURL,
              fit: BoxFit.fill,
              height: double.infinity,
              width: double.infinity,
              fadeInCurve: Curves.easeIn,
              fadeInDuration: const Duration(milliseconds: 100),
            ),
          ),

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.