-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
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
[BUG]: SvgPicture.asset generated code not compatible with latest flutter_svg #368
Comments
Same Issue. |
Hi, may I know when the issue will be resolved? |
It will probably be a few days+. Easy fix is to change your flutter_svg from ^2.0.x to 2.0.3 without the carrot so it uses that exact version. 2.0.3 will work with the current flutter_gen. |
@FlutterGen team, when can we expect this to be resolved? |
For someone who is still stuck with this bug, there is on review PR which will resolve this issue. (It's a bit hack though..) You can temporarily change Clip clipBehavior = Clip.hardEdge, |
I am using code generation. As a temporary solution, these steps are helped me to fix the errors: Error: The argument type 'Clip?' can't be assigned to the parameter type 'Clip' because 'Clip?', colorFilter
|
Any update for this? |
1 similar comment
Any update for this? |
Is there an existing issue for this?
Version
5.2.0
Command type
build_runner (Default)
What happened?
Generated code has:
The argument type 'Clip?' can't be assigned to the parameter type 'Clip'.
This is casued by flutter_svg changing the parameter Clip? to Clip: clipBehavior = Clip.hardEdge and removing the deprecated annotation.
https://github.com/dnfield/flutter_svg/blame/master/lib/svg.dart#L181
See flutter_svg 2.0.4
Relevant a pubspec.yaml.
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: