Skip to content

armgit / ente

Public Imported from GitHub
0

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

rename widget and it's file

ashilkn81175be27bb3
diff --git a/lib/ui/search_tab.dart b/lib/ui/search_tab.dart
index dde777b740..959bd976ed 100644
--- a/lib/ui/search_tab.dart
+++ b/lib/ui/search_tab.dart
@@ -19,7 +19,6 @@ class SearchTab extends StatefulWidget {
}
class _SearchTabState extends State<SearchTab> {
- // Focus nodes are necessary
var _searchResults = <SearchResult>[];
int index = 0;
diff --git a/lib/ui/viewer/search/result/search_section_result_page.dart b/lib/ui/viewer/search/result/search_section_all_page.dart
similarity index 93%
rename from lib/ui/viewer/search/result/search_section_result_page.dart
rename to lib/ui/viewer/search/result/search_section_all_page.dart
index 5edf34e986..c8dc85f98d 100644
--- a/lib/ui/viewer/search/result/search_section_result_page.dart
+++ b/lib/ui/viewer/search/result/search_section_all_page.dart
@@ -9,16 +9,15 @@ import "package:photos/ui/viewer/gallery/collection_page.dart";
import "package:photos/ui/viewer/search/result/searchable_item.dart";
import "package:photos/utils/navigation_util.dart";
-class SearchSectionResultPage extends StatefulWidget {
+class SearchSectionAllPage extends StatefulWidget {
final SectionType sectionType;
- const SearchSectionResultPage({required this.sectionType, super.key});
+ const SearchSectionAllPage({required this.sectionType, super.key});
@override
- State<SearchSectionResultPage> createState() =>
- _SearchSectionResultPageState();
+ State<SearchSectionAllPage> createState() => _SearchSectionAllPageState();
}
-class _SearchSectionResultPageState extends State<SearchSectionResultPage> {
+class _SearchSectionAllPageState extends State<SearchSectionAllPage> {
late final Future<List<SearchResult>> sectionData;
late final bool _showCTATile;
@override
diff --git a/lib/ui/viewer/search/search_section.dart b/lib/ui/viewer/search/search_section.dart
index 794b5bc7fe..3b09735226 100644
--- a/lib/ui/viewer/search/search_section.dart
+++ b/lib/ui/viewer/search/search_section.dart
@@ -10,7 +10,7 @@ import "package:photos/ui/viewer/file/thumbnail_widget.dart";
import "package:photos/ui/viewer/gallery/collection_page.dart";
import "package:photos/ui/viewer/search/result/go_to_map_widget.dart";
import "package:photos/ui/viewer/search/result/search_result_page.dart";
-import 'package:photos/ui/viewer/search/result/search_section_result_page.dart';
+import 'package:photos/ui/viewer/search/result/search_section_all_page.dart';
import "package:photos/ui/viewer/search/search_section_cta.dart";
import "package:photos/utils/navigation_util.dart";
@@ -52,7 +52,7 @@ class SearchSection extends StatelessWidget {
onTap: () {
routeToPage(
context,
- SearchSectionResultPage(
+ SearchSectionAllPage(
sectionType: sectionType,
),
);