π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use better variable names
ashilknfe7896b85a01
diff --git a/lib/ui/search_tab.dart b/lib/ui/search_tab.dartindex 0003d167c7..240ce8e4ef 100644--- a/lib/ui/search_tab.dart+++ b/lib/ui/search_tab.dart@@ -48,20 +48,19 @@ class AllSearchSections extends StatefulWidget {}class _AllSearchSectionsState extends State<AllSearchSections> {- late Future<List<List<SearchResult>>> allExamplesSearchResults;+ late Future<List<List<SearchResult>>> allSectionsExamples;@overridevoid initState() {- final exampleSearchResults = <Future<List<SearchResult>>>[];+ final sectionExamples = <Future<List<SearchResult>>>[];for (SectionType sectionType in SectionType.values) {if (sectionType == SectionType.face ||sectionType == SectionType.content) {continue;}- exampleSearchResults.add(sectionType.getData(limit: 7));+ sectionExamples.add(sectionType.getData(limit: 7));}- allExamplesSearchResults =- Future.wait<List<SearchResult>>(exampleSearchResults);+ allSectionsExamples = Future.wait<List<SearchResult>>(sectionExamples);super.initState();}@@ -75,7 +74,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {searchTypes.remove(SectionType.content);return Expanded(child: FutureBuilder(- future: allExamplesSearchResults,+ future: allSectionsExamples,builder: (context, snapshot) {if (snapshot.hasData) {return ListView.builder(diff --git a/lib/ui/viewer/file/file_app_bar.dart b/lib/ui/viewer/file/file_app_bar.dartindex d277b687af..11ec613f81 100644--- a/lib/ui/viewer/file/file_app_bar.dart+++ b/lib/ui/viewer/file/file_app_bar.dart@@ -104,20 +104,23 @@ class FileAppBarState extends State<FileAppBar> {?.isHidden() ??false;}- if (kDebugMode) {- actions.add(- Text(- widget.file.generatedID?.toString() ?? 'null',- style: const TextStyle(color: Colors.white),- ),- );- }+ if (kDebugMode) {+ actions.add(+ Text(+ widget.file.generatedID?.toString() ?? 'null',+ style: const TextStyle(color: Colors.white),+ ),+ );+ }if (widget.file.isLiveOrMotionPhoto) {actions.add(IconButton(icon: const Icon(Icons.album_outlined),onPressed: () {- showShortToast(context, S.of(context).pressAndHoldToPlayVideoDetailed);+ showShortToast(+ context,+ S.of(context).pressAndHoldToPlayVideoDetailed,+ );},),);