perf(mornye): release outgoing artwork decoders when replaced

Retain the outgoing decoder only while its frame remains displayed, then release its provider subscription as soon as replacement artwork is ready. Verify decoder disposal while preserving cover transitions.
This commit is contained in:
zarzet
2026-09-20 17:20:52 +07:00
parent a7717ddfbf
commit 6038ce5777
2 changed files with 8 additions and 5 deletions
+2
View File
@@ -181,6 +181,8 @@ void main() {
ready(2);
await tester.pump();
await tester.pump();
await tester.runAsync(() => Future<void>.delayed(Duration.zero));
expect(platform.disposals, 1, reason: 'Release the outgoing decoder');
expect(
tester
.widget<MotionHeaderBanner>(find.byType(MotionHeaderBanner))