s4nk37
s4nk37

Reputation: 303

How to add noise filter/effect on Image in flutter?

I want to create a mesh gradient with blur and noise effect. I already added blur effect using ImageFilter but don't know how to add grainy noise on top of it.enter image description here

Upvotes: 1

Views: 1556

Answers (1)

s4nk37
s4nk37

Reputation: 303

It worked by adding png of grainy texture, but I hope there are some better ways. I am open for further inputs.

  Opacity(
       opacity: 0.1,
       child: Image.asset(
      'assets/images/noise.png',
       height: double.infinity,
       width: double.infinity,
       fit: BoxFit.fill,
      ),
 ),

enter image description here

Upvotes: 0

Related Questions