Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Show applied filters in app bar of search result page (unpolished UI)

ashilkn6aebe8ad3968
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 30dc3fcdec..1fbc0f3ecc 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/applied_filters.dart";
import "package:photos/ui/viewer/hierarchicial_search/recommended_filters.dart";
import 'package:photos/utils/data_util.dart';
import 'package:photos/utils/dialog_util.dart';
@@ -131,20 +132,34 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
: AppBar(
elevation: 0,
centerTitle: false,
- title: Text(
- _appBarTitle!,
- style: Theme.of(context)
- .textTheme
- .headlineSmall!
- .copyWith(fontSize: 16),
- maxLines: 2,
- overflow: TextOverflow.ellipsis,
+ title: Expanded(
+ child: Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Expanded(
+ child: Text(
+ _appBarTitle!,
+ style: Theme.of(context)
+ .textTheme
+ .headlineSmall!
+ .copyWith(fontSize: 16),
+ maxLines: 2,
+ overflow: TextOverflow.ellipsis,
+ ),
+ ),
+ const SizedBox(
+ width: 300,
+ height: 50,
+ child: AppliedFilters(),
+ ),
+ ],
+ ),
),
actions: _getDefaultActions(context),
bottom: galleryType == GalleryType.searchResults
? const PreferredSize(
preferredSize: Size.fromHeight(0),
- child: RecommendedFilters(),
+ child: Flexible(child: RecommendedFilters()),
)
: null,
);