Skip to content

Commit

Permalink
fix: remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
maelchiotti committed Apr 4, 2024
1 parent 11fbc46 commit 4685699
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/common/actions/add.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import 'package:localmaterialnotes/providers/current_note/current_note_provider.

Future<void> addNote(BuildContext context, WidgetRef ref, {String? content}) async {
exitSelectionMode(ref);
print("1");

final note = content == null ? Note.empty() : Note.content(content);
print("2");

ref.read(currentNoteProvider.notifier).set(note);
print("3");

if (!context.mounted) return;
print("4");

final editorRoute = RouterRoute.editor.fullPath!;
final editorParameters = EditorParameters.from({'readonly': false, 'autofocus': true});
print("5");

// If the editor is already opened with another note, replace the route with the new editor
RouterRoute.isEditor
? context.pushReplacement(editorRoute, extra: editorParameters)
Expand Down

0 comments on commit 4685699

Please sign in to comment.