-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
⚡️ Enables gaplessPlayback
by default for image assets
#569
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #569 +/- ##
=======================================
Coverage 97.55% 97.55%
=======================================
Files 24 24
Lines 860 860
=======================================
Hits 839 839
Misses 21 21 ☔ View full report in Codecov by Sentry. |
@@ -57,7 +57,7 @@ ${isPackage ? "\n static const String package = '$packageName';" : ''} | |||
ImageRepeat repeat = ImageRepeat.noRepeat, | |||
Rect? centerSlice, | |||
bool matchTextDirection = false, | |||
bool gaplessPlayback = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The core change of the request.
## 5.8.0 **Feature** - [#555](#555) Support build.yaml to configure. by [@b2nkuu](https://github.com/b2nkuu) - [#567](#567) Generate the `package` constant for generated font classes. by [@TesteurManiak](https://github.com/TesteurManiak) - [#569](#569) Enables `gaplessPlayback` by default for image assets. by [@AlexV525](https://github.com/AlexV525) - [#580](#580) Allows `mime: '>=1.0.0 <3.0.0'`. by [@AlexV525](https://github.com/AlexV525) **Development** - [#563](#563) Fix concurrency execution with melos. by [@wasabeef](https://github.com/wasabeef)
What does this change?
Image assets are finalized during builds, they cannot be changed during the runtime. The
gaplessPlayback
defaults tofalse
which might lead to images flashing between routes when the provider changes, which it doesn't in fact.Now we change it to
true
to ignore changes to provide a good display experience. This can also considered as a non-breaking change in most cases.Type of change