Skip to content

armgit / ente

Public Imported from GitHub
0

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

Formating changes

ashilkn0b01e3aaa5db
diff --git a/mobile/apps/photos/lib/ui/sharing/add_participant_page.dart b/mobile/apps/photos/lib/ui/sharing/add_participant_page.dart
index 3e09d33e0a..81002b4270 100644
--- a/mobile/apps/photos/lib/ui/sharing/add_participant_page.dart
+++ b/mobile/apps/photos/lib/ui/sharing/add_participant_page.dart
@@ -531,9 +531,8 @@ class _AddParticipantPage extends State<AddParticipantPage> {
}
}
- String _adminActionLabel(int count) => count == 1
- ? "(i) Add admin"
- : "(i) Add admins";
+ String _adminActionLabel(int count) =>
+ count == 1 ? "(i) Add admin" : "(i) Add admins";
String _adminSuccessMessage(int count) {
if (count == 0) {
diff --git a/mobile/apps/photos/lib/ui/tools/similar_images_page.dart b/mobile/apps/photos/lib/ui/tools/similar_images_page.dart
index b4dc1c9123..4428e06108 100644
--- a/mobile/apps/photos/lib/ui/tools/similar_images_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/similar_images_page.dart
@@ -1036,8 +1036,7 @@ class _SimilarImagesPageState extends State<SimilarImagesPage>
if (groupAtIndexSurvives(topIndex)) {
anchorGroup = beforeFiltered[topIndex!];
} else {
- final visiblePositions = _itemPositionsListener
- .itemPositions.value
+ final visiblePositions = _itemPositionsListener.itemPositions.value
.where(
(p) => p.index >= 0 && p.index < beforeFiltered.length,
)
diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart
index 9f1337429b..c96e361abd 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart
@@ -134,12 +134,13 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {
widget.sectionType,
);
}
- final adjustedIndex = widget.sectionType.isCTAVisible
- ? index - 1
- : index;
- if (sectionResults[adjustedIndex] is AlbumSearchResult) {
+ final adjustedIndex =
+ widget.sectionType.isCTAVisible ? index - 1 : index;
+ if (sectionResults[adjustedIndex]
+ is AlbumSearchResult) {
final albumSectionResult =
- sectionResults[adjustedIndex] as AlbumSearchResult;
+ sectionResults[adjustedIndex]
+ as AlbumSearchResult;
return SearchableItemWidget(
albumSectionResult,
resultCount:
@@ -165,7 +166,8 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {
if (widget.sectionType == SectionType.magic) {
final magicSectionResult =
- sectionResults[adjustedIndex] as GenericSearchResult;
+ sectionResults[adjustedIndex]
+ as GenericSearchResult;
return SearchableItemWidget(
magicSectionResult,
onResultTap: () {
@@ -192,8 +194,8 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {
);
} else if (sectionResults[adjustedIndex]
is GenericSearchResult) {
- final result =
- sectionResults[adjustedIndex] as GenericSearchResult;
+ final result = sectionResults[adjustedIndex]
+ as GenericSearchResult;
return SearchableItemWidget(
sectionResults[adjustedIndex],
onResultTap: result.onResultTap != null
diff --git a/mobile/apps/photos/lib/ui/wrapped/cards/shared_widgets.dart b/mobile/apps/photos/lib/ui/wrapped/cards/shared_widgets.dart
index b8c01cf907..a0de1f52ed 100644
--- a/mobile/apps/photos/lib/ui/wrapped/cards/shared_widgets.dart
+++ b/mobile/apps/photos/lib/ui/wrapped/cards/shared_widgets.dart
@@ -102,7 +102,8 @@ class _DetailChips extends StatelessWidget {
children: chips
.map(
(String chip) => Container(
- padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
+ padding:
+ const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
decoration: BoxDecoration(
color: colorScheme.fillFaint,
borderRadius: BorderRadius.circular(14),