π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor
ashilknd86f9d2ffa03
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dartindex d8269595c6..904556f596 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart@@ -29,7 +29,6 @@ import "package:photos/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart";import "package:photos/ui/viewer/gallery/state/gallery_context_state.dart";import "package:photos/ui/viewer/gallery/state/gallery_files_inherited_widget.dart";import "package:photos/ui/viewer/gallery/state/inherited_search_filter_data.dart";-import "package:photos/utils/gallery_util.dart";import "package:photos/utils/hierarchical_search_util.dart";import "package:photos/utils/misc_util.dart";import "package:photos/utils/standalone/date_time.dart";@@ -639,6 +638,25 @@ class GalleryState extends State<Gallery> {),);}++ double get galleryCacheExtent {+ final int photoGridSize = localSettings.getPhotoGridSize();+ switch (photoGridSize) {+ case 2:+ case 3:+ return 1000;+ case 4:+ return 850;+ case 5:+ return 600;+ case 6:+ return 300;+ default:+ throw StateError(+ 'Invalid photo grid size configuration: $photoGridSize',+ );+ }+ }}class PinnedGroupHeader extends StatefulWidget {diff --git a/mobile/apps/photos/lib/utils/gallery_util.dart b/mobile/apps/photos/lib/utils/gallery_util.dartdeleted file mode 100644index 8ed529d390..0000000000--- a/mobile/apps/photos/lib/utils/gallery_util.dart+++ /dev/null@@ -1,18 +0,0 @@-import "package:photos/service_locator.dart";--double get galleryCacheExtent {- final int photoGridSize = localSettings.getPhotoGridSize();- switch (photoGridSize) {- case 2:- case 3:- return 1000;- case 4:- return 850;- case 5:- return 600;- case 6:- return 300;- default:- throw StateError('Invalid photo grid size configuration: $photoGridSize');- }-}