Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Show recommendations on the search results page

ashilknd55559b811ce
diff --git a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index 3be5b5f8f4..1f6b5425d4 100644
--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@ -40,6 +40,7 @@ import 'package:photos/ui/sharing/share_collection_page.dart';
import 'package:photos/ui/tools/free_space_page.dart';
import "package:photos/ui/viewer/gallery/hooks/add_photos_sheet.dart";
import 'package:photos/ui/viewer/gallery/hooks/pick_cover_photo.dart';
+import "package:photos/ui/viewer/hierarchicial_search/recommendations_row.dart";
import 'package:photos/utils/data_util.dart';
import 'package:photos/utils/dialog_util.dart';
import 'package:photos/utils/magic_util.dart';
@@ -140,6 +141,12 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
overflow: TextOverflow.ellipsis,
),
actions: _getDefaultActions(context),
+ bottom: galleryType == GalleryType.searchResults
+ ? const PreferredSize(
+ preferredSize: Size.fromHeight(0),
+ child: RecommendationsRow(),
+ )
+ : null,
);
}
diff --git a/mobile/lib/ui/viewer/search/result/search_result_page.dart b/mobile/lib/ui/viewer/search/result/search_result_page.dart
index 93f93b0d6d..6bd1f33758 100644
--- a/mobile/lib/ui/viewer/search/result/search_result_page.dart
+++ b/mobile/lib/ui/viewer/search/result/search_result_page.dart
@@ -97,7 +97,7 @@ class _SearchResultPageState extends State<SearchResultPage> {
searchFilterDataProvider: SearchFilterDataProvider(),
child: Scaffold(
appBar: PreferredSize(
- preferredSize: const Size.fromHeight(50.0),
+ preferredSize: const Size.fromHeight(90.0),
child: GalleryAppBarWidget(
SearchResultPage.appBarType,
widget.searchResult.name(),