Browse Source

migrated constants.dart to null safety

ashilkn 2 years ago
parent
commit
61a5553d36
2 changed files with 5 additions and 4 deletions
  1. 0 2
      lib/core/constants.dart
  2. 5 2
      lib/services/search_service.dart

+ 0 - 2
lib/core/constants.dart

@@ -1,5 +1,3 @@
-// @dart = 2.7
-
 const int thumbnailSmallSize = 256;
 const int thumbnailSmallSize = 256;
 const int thumbnailQuality = 50;
 const int thumbnailQuality = 50;
 const int thumbnailLargeSize = 512;
 const int thumbnailLargeSize = 512;

+ 5 - 2
lib/services/search_service.dart

@@ -293,8 +293,11 @@ class SearchService {
       );
       );
       if (matchedFiles.isNotEmpty) {
       if (matchedFiles.isNotEmpty) {
         searchResults.add(
         searchResults.add(
-          GenericSearchResult(ResultType.event,
-              '$day ${potentialDate.item2.name} ${year ?? ''}', matchedFiles),
+          GenericSearchResult(
+            ResultType.event,
+            '$day ${potentialDate.item2.name} ${year ?? ''}',
+            matchedFiles,
+          ),
         );
         );
       }
       }
     }
     }