Render SVG and PNG/JPG with the same Widget

933 Views Asked by At

Currently, I am using Image.network to render PNG/JPG and SvgPicture.network to render SVG.

However, is there a Widget that is able to detect the actual image type and automatically selects either Image.network or SvgPicture.network depending on the type?

0

There are 0 best solutions below