Skip to content

Commit

Permalink
Improved code
Browse files Browse the repository at this point in the history
  • Loading branch information
gokadzev committed Nov 18, 2023
1 parent 1d8e072 commit 52192e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/screens/search_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ class _SearchPageState extends State<SearchPage> {
searchHistory.remove(query);
});

await Hive.box('user')
.put('searchHistory', searchHistory);
addOrUpdateData(
'user',
'searchHistory',
searchHistory,
);
}
},
),
Expand Down

0 comments on commit 52192e0

Please sign in to comment.