fix(flutter): point like consumers at likesControllerProvider

Two consumer updates left out of 8a6c926: like_button.dart and
track_actions_sheet.dart still referenced the removed
likedIdsProvider.notifier API. Switched to the new
likesControllerProvider.toggle().

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-10 11:21:47 -04:00
parent 8a6c926ea7
commit 08c16d6d86
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class LikeButton extends ConsumerWidget {
color: liked ? fs.accent : fs.ash,
size: size,
),
onPressed: () => ref.read(likedIdsProvider.notifier).toggle(kind, id),
onPressed: () => ref.read(likesControllerProvider).toggle(kind, id),
);
}
}
@@ -90,7 +90,7 @@ class TrackActionsSheet extends ConsumerWidget {
label: liked ? 'Unlike' : 'Like',
onTap: () async {
Navigator.pop(context);
await ref.read(likedIdsProvider.notifier).toggle(LikeKind.track, track.id);
await ref.read(likesControllerProvider).toggle(LikeKind.track, track.id);
},
),
_MenuItem(