Skip to content

Commit

Permalink
Fix resetting file and text state after generating a deck (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored Sep 16, 2023
1 parent 5cb725e commit d39b068
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/providers/generate_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class GenerateNotifier extends _$GenerateNotifier {
// Reset state
state = const GenerateState.initial();
ref.read(pickedFileProvider.notifier).set(null);
_pickedFile = null;
_textEditingController.clear();
ref.read(generationSizeProvider.notifier).set(GenerationSize.defaultSize);

final router = ref.read(routerProvider);
Expand Down

0 comments on commit d39b068

Please sign in to comment.