π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Show contact title in search result app bar
ashilkn1f7288759c43
diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dartindex f0f16243bb..21d56b5311 100644--- a/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart@@ -168,11 +168,13 @@ class _ContactResultPageState extends State<ContactResultPage> {preferredSize: Size.fromHeight(appBarHeight),child: widget.enableGrouping? _ContactResultAppBar(+ title: _searchResultName,isHierarchicalSearchable: true,height: appBarHeight,): _AppBarWithBoundary(child: _ContactResultAppBar(+ title: _searchResultName,isHierarchicalSearchable: true,height: appBarHeight,),@@ -581,10 +583,12 @@ class _ContactResultAppBar extends StatelessWidgetimplements PreferredSizeWidget {static const _toolbarHeight = 56.0;+ final String title;final bool isHierarchicalSearchable;final double height;const _ContactResultAppBar({+ required this.title,required this.isHierarchicalSearchable,required this.height,});@@ -611,6 +615,8 @@ class _ContactResultAppBar extends StatelessWidgetbackgroundColor: colorScheme.backgroundColour,surfaceTintColor: Colors.transparent,titleSpacing: 0,+ centerTitle: false,+ title: _ContactResultAppBarTitle(title: title),);}@@ -620,6 +626,8 @@ class _ContactResultAppBar extends StatelessWidgetbackgroundColor: colorScheme.backgroundColour,surfaceTintColor: Colors.transparent,titleSpacing: 0,+ centerTitle: false,+ title: _ContactResultAppBarTitle(title: title),bottom: PreferredSize(preferredSize: Size.fromHeight(AppBarFilterChips.preferredHeight(context),@@ -633,6 +641,24 @@ class _ContactResultAppBar extends StatelessWidget}}+class _ContactResultAppBarTitle extends StatelessWidget {+ const _ContactResultAppBarTitle({required this.title});++ final String title;++ @override+ Widget build(BuildContext context) {+ return Text(+ title,+ style: getEnteTextTheme(+ context,+ ).largeBold.copyWith(color: getEnteColorScheme(context).textBase),+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ );+ }+}+/// Wrapper widget that reports the app bar as top boundary for auto-scroll/// when file grouping is disabledclass _AppBarWithBoundary extends StatefulWidget {