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?