From 6d20b368acbb0e54271721bf747cf7ea49c8be94 Mon Sep 17 00:00:00 2001 From: Matthias Nehlsen Date: Tue, 4 Mar 2025 12:00:09 +0100 Subject: [PATCH] feat: hide suggestions section when empty --- .../tasks/ui/checklists/checklist_suggestions_widget.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/tasks/ui/checklists/checklist_suggestions_widget.dart b/lib/features/tasks/ui/checklists/checklist_suggestions_widget.dart index f4329d625..7059f203f 100644 --- a/lib/features/tasks/ui/checklists/checklist_suggestions_widget.dart +++ b/lib/features/tasks/ui/checklists/checklist_suggestions_widget.dart @@ -25,7 +25,7 @@ class ChecklistSuggestionsWidget extends ConsumerWidget { ) .valueOrNull; - if (checklistItems == null) { + if (checklistItems == null || checklistItems.isEmpty) { return const SizedBox.shrink(); } diff --git a/pubspec.yaml b/pubspec.yaml index b384ab219..1239ebb6f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: lotti description: Achieve your goals and keep your data private with Lotti. publish_to: 'none' -version: 0.9.574+2906 +version: 0.9.574+2907 msix_config: display_name: LottiApp