flutter_blurhash icon indicating copy to clipboard operation
flutter_blurhash copied to clipboard

BlurHash shadow

Open aytunch opened this issue 5 years ago • 1 comments

Let's say we use a Stack and place the BlurHash image on bottom and the actual image on top(BlurHash image being a little bigger than the actual image). I haven't tried but just by imagining, this might end up with a cool shadow effect instead of the normal fixed color shadows. Of course in this case we would need to gradually decrease the opacity of the blurhas image for it to look like a real shadow.

aytunch avatar Feb 22 '20 16:02 aytunch

I've really wanted to try this. You could possibly extend the edge colour outwards, or just scale up the blur image a bit, and apply a gaussian blur as a mask.

You'd probably want to either darken the blurhash, or combine it with a second black shadow. This way you would emulate the effects of indirect reflections when shadowing.

DagAgren avatar Feb 24 '20 14:02 DagAgren