Open richert-addisca opened 5 months ago
Same error here
My appFile.file seems to be the same class File but when I try to compile this error appear
The temporary solution is to load as SvgBytesLoader
SvgBytesLoader(appFile.file!.readAsBytesSync())
When I use a dart:io File type in the same dart file as SvgPicture.file on the web, it won't compile saying the types are not compatible.
When I remove the if condition in \flutter_svg-2.0.10+1\lib\src\utilities\file.dart locally, everything compiles and works as expected.
This even happens when doing an early return for web.