We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
if (kIsWeb) { return SvgPicture.network( imageUrl!, ); } ref.watch(imageToFileProvider); File? file = ref.watch(imageToFileProvider.notifier).getFile(imageUrl!); if (file == null) { return svgPlaceholder(context); } return (imageUrl!.contains(".svg") || file.path.endsWith('.svg')) ? SvgPicture.file( file, ) : RoundedContainer( borderRadius: borderRadius, child: Image.file( file, ), );
The text was updated successfully, but these errors were encountered:
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())
Sorry, something went wrong.
fix(activity_drawer): prevent build issues regarding dnfield/flutter_…
2c8ef62
…svg#1059
I have the same issue. Did you solve this issue @richert-addisca ?
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: