I'm trying to create a mask using an image which has a transparency (where it should be hidden). The result is that it's black where the pixels are transparent
image:

mask: (white with transparent)

result:

I want that black parts become transparent (behind have the rest of the application)
code:
WidgetMask(
blendMode: BlendMode.dstATop,
mask: Image.asset(
"path_mask",
),
child: Image.asset(
"path_image",
),
)
I'm trying to create a mask using an image which has a transparency (where it should be hidden). The result is that it's black where the pixels are transparent
image:

mask: (white with transparent)

result:

I want that black parts become transparent (behind have the rest of the application)
code:
WidgetMask(
blendMode: BlendMode.dstATop,
mask: Image.asset(
"path_mask",
),
child: Image.asset(
"path_image",
),
)