Skip to content

Not working with Image mask with transparent pixels #2

@Gilianp

Description

@Gilianp

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:
image

mask: (white with transparent)
bg_baixaria_forma_inner_redonda_1_2_mask

result:
res

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",
),
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions