π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix file count coming up as 'null' in some albums + some layout changes
ashilkn0d180f6e8d02
diff --git a/lib/ui/viewer/search_tab/albums_section.dart b/lib/ui/viewer/search_tab/albums_section.dartindex ef7fe8a36c..c8f6d82318 100644--- a/lib/ui/viewer/search_tab/albums_section.dart+++ b/lib/ui/viewer/search_tab/albums_section.dart@@ -70,20 +70,35 @@ class AlbumRecommendation extends StatelessWidget {),),const SizedBox(height: 2),- Text(- albumSearchResult.name(),- style: enteTextTheme.small,- maxLines: 1,- overflow: TextOverflow.ellipsis,- ),- const SizedBox(height: 3),- Text(- CollectionsService.instance- .getCachedFileCount(+ Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ mainAxisAlignment: MainAxisAlignment.center,+ children: [+ Text(+ albumSearchResult.name(),+ style: enteTextTheme.small,+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ ),+ const SizedBox(height: 3),+ FutureBuilder(+ future: CollectionsService.instance.getFileCount(albumSearchResult.collectionWithThumbnail.collection,- )- .toString(),- style: enteTextTheme.smallMuted,+ ),+ builder: (context, snapshot) {+ if (snapshot.hasData &&+ snapshot.data != null &&+ snapshot.data != 0) {+ return Text(+ snapshot.data.toString(),+ style: enteTextTheme.smallMuted,+ );+ } else {+ return const SizedBox.shrink();+ }+ },+ ),+ ],),],),