mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-24 03:49:30 +00:00
fix: remove unused parameters from librarySeriesProvider
- Remove unused page and limit parameters from librarySeries provider - Update library_series_page to call provider without parentheses - Fix riverpod_generator compatibility issue
This commit is contained in:
parent
e778e494b4
commit
fafd4c5315
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ Future<List<String>> libraryGenres(Ref ref) async {
|
|||
|
||||
/// Provider for fetching all series in the current library
|
||||
@riverpod
|
||||
Future<GetLibrarysSeriesResponse?> librarySeries(Ref ref, {int page = 0, int limit = 50}) async {
|
||||
Future<GetLibrarysSeriesResponse?> librarySeries(Ref ref) async {
|
||||
final api = ref.watch(authenticatedApiProvider);
|
||||
final currentLibrary = await ref.watch(currentLibraryProvider.future);
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ class LibrarySeriesPage extends HookConsumerWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final seriesAsync = ref.watch(librarySeriesProvider());
|
||||
final seriesAsync = ref.watch(librarySeriesProvider);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue