Skip to content

Commit 9a04d54

Browse files
committed
fix: reverse history list
1 parent 44a34c9 commit 9a04d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Screens/Search/SearchScreen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class SearchScreenState extends State<SearchScreen> {
6969
var key =
7070
"${service.getName}${widget.title.name.toUpperCase()}_searchHistory";
7171
var theme = context.theme.colorScheme;
72-
List<String> searchHistory = loadCustomData(key) ?? [];
73-
72+
List<String> searchHistory = (loadCustomData(key) ?? []);
7473
return CustomScrollConfig(
7574
context,
7675
controller: screen.scrollController,
@@ -86,6 +85,7 @@ class SearchScreenState extends State<SearchScreen> {
8685
children: [
8786
...screen.headerWidget(context),
8887
ListView.builder(
88+
reverse: true,
8989
shrinkWrap: true,
9090
physics: const NeverScrollableScrollPhysics(),
9191
itemCount: searchHistory.length,

0 commit comments

Comments
 (0)