refactor: migrate to riverpod 3

This commit is contained in:
cogwheel0
2025-09-21 22:31:44 +05:30
parent 37e5633c5c
commit 462bf4cde2
20 changed files with 834 additions and 453 deletions

View File

@@ -9,4 +9,14 @@ final promptsListProvider = FutureProvider<List<Prompt>>((ref) async {
return promptsService.getPrompts();
});
final activePromptCommandProvider = StateProvider<String?>((ref) => null);
final activePromptCommandProvider =
NotifierProvider<ActivePromptCommandNotifier, String?>(
ActivePromptCommandNotifier.new,
);
class ActivePromptCommandNotifier extends Notifier<String?> {
@override
String? build() => null;
void set(String? command) => state = command;
}