Render SVG and PNG/JPG with the same Widget

Viewed 372

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 Answers
Related