mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-29 12:52:13 +02:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user