-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Fixes flutter_svg latest version requiring a non null clipBehavior field. #369
Conversation
SvgPicture.asset expects a non null type for clipBehavior. This creates a default value that matches SvgPicture default clipBehavior.
This is to match the latest version of flutter_svg. See: https://github.com/dnfield/flutter_svg/blame/master/lib/svg.dart#L181
Tests are broken for this because they expect updated files in the |
@jetpeter |
I tested your commit, but it doesn't seem to be generating the code with the nonNullable clip behavior. Any ideas what might be going on? Added it to my pubspec like so:
|
Can confirm. I basically had to delete the line |
Change was not made to flutter_gen_runner. It was made to flutter_gen_core. To get the fix you need to add
below your dev_dependencies: block. |
I updated the test files to reflect the changes in flutter_svg. This should be good to go now. |
Oops, didn't notice the changes we're in the core package. Thanks. LGTM. |
Codecov Report
@@ Coverage Diff @@
## main #369 +/- ##
=======================================
Coverage 98.26% 98.26%
=======================================
Files 20 20
Lines 693 693
=======================================
Hits 681 681
Misses 12 12
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@jetpeter @jfacoustic @noga-dev @szelemeh I just released |
What does this change?
Fixes flutter_svg latest version requiring a non null clipBehavior field.
Fixes #368
Type of change
Please delete options that are not relevant.
Checklist:
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
melos run unit:test
)melos run format
to automatically apply formatting)