Skip to content

Commit

Permalink
fix: Provider missing on LargeLyricsView
Browse files Browse the repository at this point in the history
  • Loading branch information
khaled-0 committed Dec 1, 2024
1 parent 50c7c3c commit 4cfcbdb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions lib/app/player/components/lyrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,15 @@ class _LyricsState extends State<Lyrics> with AutomaticKeepAliveClientMixin {
},
transitionDuration: Durations.short3,
reverseTransitionDuration: Durations.short2,
pageBuilder: (_, __, ___) => ChangeNotifierProvider.value(
value: playerProvider,
child: _ExpandedLyrics(result),
pageBuilder: (_, __, ___) => MultiProvider(
providers: [
Provider.value(value: context.read<Isar>()),
ChangeNotifierProvider.value(value: playerProvider),
],
child: ChangeNotifierProvider.value(
value: playerProvider,
child: _ExpandedLyrics(result),
),
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/model/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Thumbnails with EquatableMixin {
bool get stringify => true;

@override
List<Object?> get props => [low, medium, high];
List<Object?> get props => [low, medium, high, max];
}

@Embedded(ignore: {"props", "stringify"})
Expand Down

0 comments on commit 4cfcbdb

Please sign in to comment.