Skip to content

SVG renders correctly in browsers but partially visible in flutter_svg #1115

@Roufaida-As

Description

@Roufaida-As

Bug Report: SVG renders correctly in browsers but partially visible in flutter_svg

flutter_svg version: 2.2.0
Flutter version: latest

Issue:
SVG file displays completely when opened in web browsers, but only renders partially when using SvgPicture.asset() in Flutter.

SVG details:

  • Dimensions: 249x260
  • ViewBox: 0 0 249 260
  • Contains multiple path elements with different fill colors

What I've tried:

  • Different BoxFit options (contain, fill, scaleDown)
  • Removing explicit width/height
  • allowDrawingOutsideViewBox: true
  • Multiple flutter_svg versions
  • SVG optimization tools
  • Container wrapping with various clip settings

Expected: Full SVG visible as in browser
Actual: Only partial SVG renders

Any guidance would be appreciated.

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