From 4c0703eb94feaf450b55c160b3cb3387128bcac3 Mon Sep 17 00:00:00 2001
From: Sara <sarasdj@stud.ntnu.no>
Date: Tue, 4 Jun 2024 18:11:41 +0200
Subject: [PATCH] update: almost fixed

---
 app/lib/utils/custom_search_delegate.dart | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/lib/utils/custom_search_delegate.dart b/app/lib/utils/custom_search_delegate.dart
index 09886e07..68de8856 100644
--- a/app/lib/utils/custom_search_delegate.dart
+++ b/app/lib/utils/custom_search_delegate.dart
@@ -69,7 +69,9 @@ class CustomSearchDelegate extends SearchDelegate {
             title: Text(result),
             onTap: () {
               onResultSelected(result);
-              close(context, result);
+              Future.delayed(const Duration(milliseconds: 1500), () {
+                close(context, result);
+              });
             },
           );
         }
-- 
GitLab