From 6a5d36b1d9fa0f0631c9958bcdf4464f276a6783 Mon Sep 17 00:00:00 2001 From: mateusz-bak <32651935+mateusz-bak@users.noreply.github.com> Date: Tue, 6 Feb 2024 11:11:08 +0700 Subject: [PATCH 1/2] fix: Adding empty tag will not throw exception --- lib/ui/add_book_screen/add_book_screen.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ui/add_book_screen/add_book_screen.dart b/lib/ui/add_book_screen/add_book_screen.dart index 9b28c37e..53fd3fa3 100644 --- a/lib/ui/add_book_screen/add_book_screen.dart +++ b/lib/ui/add_book_screen/add_book_screen.dart @@ -231,6 +231,13 @@ class _AddBookScreenState extends State { } void _addNewTag() { + final tag = _tagsCtrl.text; + + if (tag.isEmpty) { + FocusManager.instance.primaryFocus?.unfocus(); + return; + } + context.read().addNewTag(_tagsCtrl.text); _tagsCtrl.clear(); From 40dd42612a3d18bc17036381e73ca83b9a15ffd7 Mon Sep 17 00:00:00 2001 From: mateusz-bak <32651935+mateusz-bak@users.noreply.github.com> Date: Tue, 6 Feb 2024 11:11:33 +0700 Subject: [PATCH 2/2] chore: Keeping images dir --- assets/images/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 assets/images/.gitkeep diff --git a/assets/images/.gitkeep b/assets/images/.gitkeep new file mode 100644 index 00000000..e69de29b