Explorar el Código

Show photo with creationTime in future

Neeraj Gupta hace 3 años
padre
commit
0bebde580d
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      lib/core/constants.dart
  2. 1 1
      lib/ui/gallery.dart

+ 1 - 0
lib/core/constants.dart

@@ -12,6 +12,7 @@ const String kRoadmapURL = "https://roadmap.ente.io";
 const int kMicroSecondsInDay = 86400000000;
 const int kMicroSecondsInDay = 86400000000;
 const int kAndroid11SDKINT = 30;
 const int kAndroid11SDKINT = 30;
 const int kGalleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
 const int kGalleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
+const int kGalleryLoadEndTime = 9223372036854775807; // 2^63 -1
 
 
 // used to identify which ente file are available in app cache
 // used to identify which ente file are available in app cache
 const String kSharedMediaIdentifier = 'ente-shared://';
 const String kSharedMediaIdentifier = 'ente-shared://';

+ 1 - 1
lib/ui/gallery.dart

@@ -114,7 +114,7 @@ class _GalleryState extends State<Gallery> {
       final startTime = DateTime.now().microsecondsSinceEpoch;
       final startTime = DateTime.now().microsecondsSinceEpoch;
       final result = await widget.asyncLoader(
       final result = await widget.asyncLoader(
         kGalleryLoadStartTime,
         kGalleryLoadStartTime,
-        DateTime.now().microsecondsSinceEpoch,
+        kGalleryLoadEndTime,
         limit: limit,
         limit: limit,
       );
       );
       final endTime = DateTime.now().microsecondsSinceEpoch;
       final endTime = DateTime.now().microsecondsSinceEpoch;