-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: radio history tile images after new station uuid mapping (#998)
- Loading branch information
1 parent
ce9cf1b
commit e305900
Showing
11 changed files
with
134 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:safe_change_notifier/safe_change_notifier.dart'; | ||
|
||
import 'online_art_service.dart'; | ||
|
||
class OnlineArtModel extends SafeChangeNotifier { | ||
OnlineArtModel({ | ||
required OnlineArtService onlineArtService, | ||
}) : _onlineArtService = onlineArtService; | ||
|
||
final OnlineArtService _onlineArtService; | ||
StreamSubscription<bool>? _propertiesChangedSub; | ||
String? getCover(String icyTitle) => _onlineArtService.get(icyTitle); | ||
|
||
void init() { | ||
_propertiesChangedSub ??= | ||
_onlineArtService.propertiesChanged.listen((_) => notifyListeners()); | ||
} | ||
|
||
@override | ||
Future<void> dispose() async { | ||
await _propertiesChangedSub?.cancel(); | ||
super.dispose(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.