Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use better variable names

ashilknfe7896b85a01
diff --git a/lib/ui/search_tab.dart b/lib/ui/search_tab.dart
index 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;
@override
void 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.dart
index 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,
+ );
},
),
);