♻️ Migrated to riverpod v3

This commit is contained in:
2025-12-06 13:00:30 +08:00
parent fd79c11d18
commit 9d03faf594
158 changed files with 6834 additions and 10357 deletions

View File

@@ -20,7 +20,7 @@ class DraftManagerSheet extends HookConsumerWidget {
final searchController = useTextEditingController();
final searchQuery = useState('');
final drafts = ref.watch(composeStorageNotifierProvider);
final drafts = ref.watch(composeStorageProvider);
// Search functionality
final filteredDrafts = useMemoized(() {
@@ -101,7 +101,7 @@ class DraftManagerSheet extends HookConsumerWidget {
},
onDelete: () async {
await ref
.read(composeStorageNotifierProvider.notifier)
.read(composeStorageProvider.notifier)
.deleteDraft(draft.id);
},
);
@@ -127,7 +127,7 @@ class DraftManagerSheet extends HookConsumerWidget {
if (confirmed == true) {
await ref
.read(composeStorageNotifierProvider.notifier)
.read(composeStorageProvider.notifier)
.clearAllDrafts();
}
},