Skip to content
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

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

AlexV525
Copy link
Member

@AlexV525 AlexV525 commented Sep 5, 2024

What does this change?

Image assets are finalized during builds, they cannot be changed during the runtime. The gaplessPlayback defaults to false 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

  • New feature (non-breaking change which adds functionality)

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.55%. Comparing base (d29f6bd) to head (bd46812).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@@ -57,7 +57,7 @@ ${isPackage ? "\n static const String package = '$packageName';" : ''}
ImageRepeat repeat = ImageRepeat.noRepeat,
Rect? centerSlice,
bool matchTextDirection = false,
bool gaplessPlayback = false,
Copy link
Member Author

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.

@AlexV525 AlexV525 marked this pull request as ready for review September 7, 2024 02:46
@AlexV525 AlexV525 merged commit 0f44829 into main Sep 9, 2024
5 checks passed
@AlexV525 AlexV525 deleted the feat/gapless-playback branch September 9, 2024 05:29
@AlexV525 AlexV525 added this to the 5.8.0 milestone Oct 1, 2024
@AlexV525 AlexV525 mentioned this pull request Oct 1, 2024
wasabeef pushed a commit that referenced this pull request Oct 8, 2024
## 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant