migrate: riverpod 3

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-10-08 17:03:13 +08:00
parent f68c4a851b
commit da8517bcf7
51 changed files with 840 additions and 884 deletions

View File

@@ -36,7 +36,7 @@ class _SnippetListPageState extends ConsumerState<SnippetListPage> with Automati
Widget _buildBody() {
// final isMobile = ResponsiveBreakpoints.of(context).isMobile;
final snippetState = ref.watch(snippetNotifierProvider);
final snippetState = ref.watch(snippetProvider);
final snippets = snippetState.snippets;
return _tag.listenVal((tag) {
@@ -56,7 +56,7 @@ class _SnippetListPageState extends ConsumerState<SnippetListPage> with Automati
}
Widget _buildScaffold(List<Snippet> snippets, String tag) {
final snippetState = ref.watch(snippetNotifierProvider);
final snippetState = ref.watch(snippetProvider);
return Scaffold(
appBar: TagSwitcher(
tags: snippetState.tags.vn,