1

So far I found in the documentation info about BlendMode in Flutter, but I haven't found the code example or something that will refer to exact usage of this enum in order to achieve masking in Flutter with image and svg file.

I found the flutter_svg library, but I haven't seen in the documentation that this feature is available. Also, I found a lot of examples for web(html/css), one of them is this.

So, is it possible and if yes how to achieve masking like this in Flutter?

Thanks

Kirill Matrosov
  • 5,564
  • 4
  • 28
  • 39
svarog
  • 688
  • 1
  • 12
  • 29
  • do you have `CustomPainter` for drawing? i mean do you want do draw that cat using low level `Canvas` stuff? – pskink Jan 15 '20 at 11:06
  • @pskink, no, I do not have, to be honest I don't know where to start with this issue. I just have profile picture and svg, and I have to shape profile pic with that shape. Can you advice? thanks – svarog Jan 15 '20 at 11:08
  • 1
    so first dtart from https://blog.usejournal.com/how-to-draw-custom-shapes-in-flutter-aa197bda94bf – pskink Jan 15 '20 at 11:11
  • 1
    This would be a good start for you [link](https://stackoverflow.com/questions/50698335/clipping-images-using-png-in-flutter) – Slah Layouni Jan 15 '20 at 11:19
  • so you already know how to make that "cat-on-the-water"? – pskink Jan 15 '20 at 15:23
  • @pskink I just fond it, I guess it will work. Thanks for help :) – svarog Jan 15 '20 at 15:23
  • 1
    well, i did not help you much, but... – pskink Jan 15 '20 at 15:25

0 Answers0