mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 23:02:43 +01:00
display albums from db
This commit is contained in:
14
lib/app/state/services.dart
Normal file
14
lib/app/state/services.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
|
||||
import '../../services/sync_services.dart';
|
||||
import 'database.dart';
|
||||
import 'settings.dart';
|
||||
import 'source.dart';
|
||||
|
||||
final syncServiceProvider = Provider<SyncService>((ref) {
|
||||
final db = ref.watch(databaseProvider);
|
||||
final source = ref.watch(sourceProvider);
|
||||
final sourceId = ref.watch(sourceIdProvider);
|
||||
|
||||
return SyncService(source: source, db: db, sourceId: sourceId);
|
||||
});
|
||||
Reference in New Issue
Block a user