♻️ 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

@@ -13,15 +13,15 @@ final thoughtSequenceListNotifierProvider = AsyncNotifierProvider.autoDispose<
>(ThoughtSequenceListNotifier.new);
class ThoughtSequenceListNotifier
extends AutoDisposeAsyncNotifier<List<SnThinkingSequence>>
with AutoDisposeAsyncPaginationController<SnThinkingSequence> {
static const int _pageSize = 20;
extends AsyncNotifier<List<SnThinkingSequence>>
with AsyncPaginationController<SnThinkingSequence> {
static const int pageSize = 20;
@override
Future<List<SnThinkingSequence>> fetch() async {
final client = ref.read(apiClientProvider);
final queryParams = {'offset': fetchedCount, 'take': _pageSize};
final queryParams = {'offset': fetchedCount, 'take': pageSize};
final response = await client.get(
'/insight/thought/sequences',