small fix, don't worry about it

This commit is contained in:
Tomas Dvorak
2026-04-10 12:05:40 +02:00
parent 7b7ed0083f
commit 5ab2773f98
55 changed files with 3240 additions and 483 deletions
@@ -522,6 +522,7 @@ Future<void> _showAddCalendarEntrySheet(
],
ElevatedButton(
onPressed: () async {
final navigator = Navigator.of(sheetContext);
await ref
.read(calendarControllerProvider.notifier)
.addEntry(
@@ -529,8 +530,8 @@ Future<void> _showAddCalendarEntrySheet(
note: noteController.text,
goalId: selectedGoalId,
);
if (Navigator.of(sheetContext).canPop()) {
Navigator.of(sheetContext).pop();
if (navigator.canPop()) {
navigator.pop();
}
},
child: const Text('Save to calendar'),