started incremental migration to null safety
This commit is contained in:
parent
1a020dc092
commit
eb7c1ec837
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:adaptive_theme/adaptive_theme.dart';
|
||||
|
|
2
lib/core/cache/image_cache.dart
vendored
2
lib/core/cache/image_cache.dart
vendored
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:photos/core/cache/lru_map.dart';
|
||||
|
|
2
lib/core/cache/lru_map.dart
vendored
2
lib/core/cache/lru_map.dart
vendored
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:collection';
|
||||
|
||||
typedef EvictionHandler<K, V> = Function(K key, V value);
|
||||
|
|
2
lib/core/cache/thumbnail_cache.dart
vendored
2
lib/core/cache/thumbnail_cache.dart
vendored
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:photos/core/cache/lru_map.dart';
|
||||
|
|
2
lib/core/cache/thumbnail_cache_manager.dart
vendored
2
lib/core/cache/thumbnail_cache_manager.dart
vendored
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
|
||||
class ThumbnailCacheManager {
|
||||
|
|
2
lib/core/cache/video_cache_manager.dart
vendored
2
lib/core/cache/video_cache_manager.dart
vendored
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
|
||||
class VideoCacheManager {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:io' as io;
|
||||
import 'dart:typed_data';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
const int kThumbnailSmallSize = 256;
|
||||
const int kThumbnailQuality = 50;
|
||||
const int kThumbnailLargeSize = 512;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
library super_logging;
|
||||
|
||||
import 'dart:async';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:http/http.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
class InvalidFileError extends ArgumentError {
|
||||
InvalidFileError(String message) : super(message);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:event_bus/event_bus.dart';
|
||||
|
||||
class Bus {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:alice/alice.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/search/holiday_search_result.dart';
|
||||
|
||||
const List<HolidayData> allHolidays = [
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/search/month_search_result.dart';
|
||||
|
||||
List<MonthData> allMonths = [
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/utils/date_time_util.dart';
|
||||
|
||||
class YearsData {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:logging/logging.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class AccountConfiguredEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class BackupFoldersUpdatedEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/files_updated_event.dart';
|
||||
|
||||
class CollectionUpdatedEvent extends FilesUpdatedEvent {
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
// @dart=2.9
|
||||
|
||||
class Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
import 'package:photos/models/file.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class ForceReloadHomeGalleryEvent extends Event {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class ForceReloadTrashPageEvent extends Event {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/files_updated_event.dart';
|
||||
|
||||
class LocalPhotosUpdatedEvent extends FilesUpdatedEvent {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class PermissionGrantedEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class SignedInEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class SubscriptionPurchasedEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class SyncStatusUpdate extends Event {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class TabChangedEvent extends Event {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class TriggerLogoutEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class TwoFactorStatusChangeEvent extends Event {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class UserDetailsChangedEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/events/event.dart';
|
||||
|
||||
class UserLoggedOutEvent extends Event {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:ui';
|
||||
|
||||
class L10n {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
class BackupStatus {
|
||||
final List<String> localIDs;
|
||||
final int size;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:core';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
class CollectionFileItem {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/collection.dart';
|
||||
import 'package:photos/models/device_folder.dart';
|
||||
import 'package:photos/models/file.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class DeleteChallengeResponse {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
class DerivedKeyResult {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
|
||||
class DeviceFolder {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
class EncryptionResult {
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// EnteFile is base file entry for various type of files
|
||||
// like DeviceFile,RemoteFile or TrashedFile
|
||||
|
||||
// @dart=2.9
|
||||
|
||||
abstract class EnteFile {
|
||||
// returns cacheKey which should be used while caching entry related to
|
||||
// this file.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:path/path.dart';
|
||||
import 'package:photo_manager/photo_manager.dart';
|
||||
import 'package:photos/core/configuration.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
|
||||
class FileLoadResult {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
enum FileType {
|
||||
image,
|
||||
video,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
|
||||
class GalleryItemsFilter {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
enum GalleryType {
|
||||
homepage,
|
||||
archive,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/trash_file.dart';
|
||||
|
||||
const kIgnoreReasonTrash = "trash";
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
class KeyAttributes {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/key_attributes.dart';
|
||||
import 'package:photos/models/private_key_attributes.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
class Location {
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
const kVisibilityVisible = 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
|
||||
class Memory {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
class PrivateKeyAttributes {
|
||||
final String key;
|
||||
final String recoveryKey;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
class PublicKey {
|
||||
final String email;
|
||||
final String publicKey;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/collection_items.dart';
|
||||
import 'package:photos/models/search/search_results.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
import 'package:photos/models/search/search_results.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
import 'package:photos/models/search/search_results.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
class LocationApiResponse {
|
||||
final List<LocationDataFromResponse> results;
|
||||
LocationApiResponse({
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
import 'package:photos/models/search/search_results.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
import 'package:photos/models/search/search_results.dart';
|
||||
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
// @dart=2.9
|
||||
|
||||
class SearchResult {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
import 'package:photos/models/search/search_results.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:photos/models/file.dart';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
class SetKeysRequest {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
class SetRecoveryKeyRequest {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
const kFreeProductID = "free";
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:photos/models/file.dart';
|
||||
|
||||
class TrashFile extends File {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
class TrashRequest {
|
||||
final int fileID;
|
||||
final int collectionID;
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
// @dart=2.9
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
class UploadURL {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
class AppLifecycleService {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:math';
|
||||
import 'dart:typed_data';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:photos/core/configuration.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter_sodium/flutter_sodium.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:local_auth/local_auth.dart';
|
||||
import 'package:photos/core/configuration.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:core';
|
||||
import 'dart:io';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:photos/core/constants.dart';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue