Skip to content

currentColor opacity ignored #617

@FaFre

Description

@FaFre

The recently added support for currentColor in ThemeData ignores the colors opacity.

For example this will render the icon with full opacity, despite it should be fully invisible:

final icon = svg.fromSvgBytes(iconData, iconKey, theme: SvgTheme(currentColor: Colors.blue.withOpacity(0)));
icon
            ..scaleCanvasToViewBox(canvas, iconSize)
            ..clipCanvasToViewBox(canvas)
            ..draw(canvas, Rect.zero);

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