A cross platform Audiobookshelf client for Android and iOS
Dart
Refresh the playing card cover and colors when the cover changes on the server
Barnabasefca18ba0149
diff --git a/lib/widgets/absorbing_card.dart b/lib/widgets/absorbing_card.dartindex 684792b7..1d86b7a9 100644--- a/lib/widgets/absorbing_card.dart+++ b/lib/widgets/absorbing_card.dart@@ -292,6 +292,11 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveClifinal ts = lib.itemUpdatedAt(_itemId);if (ts == _lastSeenUpdatedAt) return;_lastSeenUpdatedAt = ts;+ // The cover may have changed server-side. Drop the cached provider and+ // accent scheme so they re-derive from the new cache-busted URL (the+ // blurred background already re-derives itself on URL change in build).+ _coverProvider = null;+ _rawCoverScheme = null;if (_ebookFile != null || _refetchingItem) return;_refetchingItem = true;WidgetsBinding.instance.addPostFrameCallback((_) async {