From eb7c1ec8376af155afaa5e68d1d1fc4890f27997 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Wed, 7 Sep 2022 14:00:09 +0530 Subject: [PATCH 1/4] started incremental migration to null safety --- lib/app.dart | 2 ++ lib/core/cache/image_cache.dart | 2 ++ lib/core/cache/lru_map.dart | 2 ++ lib/core/cache/thumbnail_cache.dart | 2 ++ lib/core/cache/thumbnail_cache_manager.dart | 2 ++ lib/core/cache/video_cache_manager.dart | 2 ++ lib/core/configuration.dart | 2 ++ lib/core/constants.dart | 2 ++ lib/core/error-reporting/super_logging.dart | 2 ++ lib/core/error-reporting/tunneled_transport.dart | 2 ++ lib/core/errors.dart | 2 ++ lib/core/event_bus.dart | 2 ++ lib/core/network.dart | 2 ++ lib/data/holidays.dart | 2 ++ lib/data/months.dart | 2 ++ lib/data/years.dart | 2 ++ lib/db/collections_db.dart | 2 ++ lib/db/file_updation_db.dart | 2 ++ lib/db/files_db.dart | 2 ++ lib/db/ignored_files_db.dart | 2 ++ lib/db/memories_db.dart | 2 ++ lib/db/public_keys_db.dart | 2 ++ lib/db/trash_db.dart | 2 ++ lib/db/upload_locks_db.dart | 2 ++ lib/ente_theme_data.dart | 2 ++ lib/events/account_configured_event.dart | 2 ++ lib/events/backup_folders_updated_event.dart | 2 ++ lib/events/collection_updated_event.dart | 2 ++ lib/events/event.dart | 2 ++ lib/events/files_updated_event.dart | 2 ++ lib/events/force_reload_home_gallery_event.dart | 2 ++ lib/events/force_reload_trash_page_event.dart | 2 ++ lib/events/local_photos_updated_event.dart | 2 ++ lib/events/permission_granted_event.dart | 2 ++ lib/events/signed_in_event.dart | 2 ++ lib/events/subscription_purchased_event.dart | 2 ++ lib/events/sync_status_update_event.dart | 2 ++ lib/events/tab_changed_event.dart | 2 ++ lib/events/trigger_logout_event.dart | 2 ++ lib/events/two_factor_status_change_event.dart | 2 ++ lib/events/user_details_changed_event.dart | 2 ++ lib/events/user_logged_out_event.dart | 2 ++ lib/l10n/l10n.dart | 2 ++ lib/main.dart | 2 ++ lib/models/backup_status.dart | 2 ++ lib/models/billing_plan.dart | 2 ++ lib/models/collection.dart | 2 ++ lib/models/collection_file_item.dart | 2 ++ lib/models/collection_items.dart | 2 ++ lib/models/delete_account.dart | 2 ++ lib/models/derived_key_result.dart | 2 ++ lib/models/device_folder.dart | 2 ++ lib/models/duplicate_files.dart | 2 ++ lib/models/encryption_result.dart | 2 ++ lib/models/ente_file.dart | 3 +++ lib/models/file.dart | 2 ++ lib/models/file_load_result.dart | 2 ++ lib/models/file_type.dart | 2 ++ lib/models/filters/gallery_items_filter.dart | 2 ++ lib/models/filters/important_items_filter.dart | 2 ++ lib/models/gallery_type.dart | 2 ++ lib/models/ignored_file.dart | 2 ++ lib/models/key_attributes.dart | 2 ++ lib/models/key_gen_result.dart | 2 ++ lib/models/location.dart | 2 ++ lib/models/magic_metadata.dart | 2 ++ lib/models/memory.dart | 2 ++ lib/models/private_key_attributes.dart | 2 ++ lib/models/public_key.dart | 2 ++ lib/models/search/album_search_result.dart | 2 ++ lib/models/search/file_search_result.dart | 2 ++ lib/models/search/holiday_search_result.dart | 2 ++ lib/models/search/location_api_response.dart | 2 ++ lib/models/search/location_search_result.dart | 2 ++ lib/models/search/month_search_result.dart | 2 ++ lib/models/search/search_results.dart | 2 ++ lib/models/search/year_search_result.dart | 2 ++ lib/models/selected_files.dart | 2 ++ lib/models/sessions.dart | 2 ++ lib/models/set_keys_request.dart | 2 ++ lib/models/set_recovery_key_request.dart | 2 ++ lib/models/subscription.dart | 2 ++ lib/models/trash_file.dart | 2 ++ lib/models/trash_item_request.dart | 2 ++ lib/models/update_share_url_request.dart | 2 ++ lib/models/upload_url.dart | 2 ++ lib/models/user_details.dart | 2 ++ lib/services/app_lifecycle_service.dart | 2 ++ lib/services/billing_service.dart | 2 ++ lib/services/collections_service.dart | 2 ++ lib/services/deduplication_service.dart | 2 ++ lib/services/favorites_service.dart | 2 ++ lib/services/feature_flag_service.dart | 2 ++ lib/services/file_magic_service.dart | 2 ++ lib/services/ignored_files_service.dart | 2 ++ lib/services/local_authentication_service.dart | 2 ++ lib/services/local_file_update_service.dart | 2 ++ lib/services/local_sync_service.dart | 2 ++ lib/services/memories_service.dart | 2 ++ lib/services/notification_service.dart | 2 ++ lib/services/push_service.dart | 2 ++ lib/services/remote_sync_service.dart | 2 ++ lib/services/search_service.dart | 2 ++ lib/services/sync_service.dart | 2 ++ lib/services/trash_sync_service.dart | 2 ++ lib/services/update_service.dart | 2 ++ lib/services/user_service.dart | 2 ++ lib/ui/account/change_email_dialog.dart | 2 ++ lib/ui/account/delete_account_page.dart | 2 ++ lib/ui/account/email_entry_page.dart | 2 ++ lib/ui/account/login_page.dart | 2 ++ lib/ui/account/ott_verification_page.dart | 2 ++ lib/ui/account/password_entry_page.dart | 2 ++ lib/ui/account/password_reentry_page.dart | 2 ++ lib/ui/account/recovery_key_page.dart | 2 ++ lib/ui/account/recovery_page.dart | 2 ++ lib/ui/account/sessions_page.dart | 2 ++ lib/ui/account/two_factor_authentication_page.dart | 2 ++ lib/ui/account/two_factor_recovery_page.dart | 2 ++ lib/ui/account/two_factor_setup_page.dart | 2 ++ lib/ui/backup_folder_selection_page.dart | 2 ++ lib/ui/collections/collection_item_widget.dart | 2 ++ lib/ui/collections/create_new_album_widget.dart | 2 ++ lib/ui/collections/device_folder_icon_widget.dart | 2 ++ lib/ui/collections/device_folders_grid_view_widget.dart | 2 ++ lib/ui/collections/ente_section_title.dart | 2 ++ lib/ui/collections/hidden_collections_button_widget.dart | 2 ++ lib/ui/collections/remote_collections_grid_view_widget.dart | 2 ++ lib/ui/collections/section_title.dart | 2 ++ lib/ui/collections/trash_button_widget.dart | 2 ++ lib/ui/collections_gallery_widget.dart | 2 ++ lib/ui/common/DividerWithPadding.dart | 2 ++ lib/ui/common/bottom_shadow.dart | 2 ++ lib/ui/common/dialogs.dart | 2 ++ lib/ui/common/dynamic_fab.dart | 2 ++ lib/ui/common/gradient_button.dart | 2 ++ lib/ui/common/linear_progress_dialog.dart | 2 ++ lib/ui/common/loading_widget.dart | 2 ++ lib/ui/common/progress_dialog.dart | 2 ++ lib/ui/common/rename_dialog.dart | 2 ++ lib/ui/common/report_bug_popup.dart | 2 ++ lib/ui/common/web_page.dart | 2 ++ lib/ui/create_collection_page.dart | 2 ++ lib/ui/extents_page_view.dart | 2 ++ lib/ui/grant_permissions_widget.dart | 2 ++ lib/ui/header_error_widget.dart | 2 ++ lib/ui/home_widget.dart | 2 ++ lib/ui/huge_listview/draggable_scrollbar.dart | 2 ++ lib/ui/huge_listview/huge_listview.dart | 2 ++ lib/ui/huge_listview/lazy_loading_gallery.dart | 2 ++ lib/ui/huge_listview/place_holder_widget.dart | 2 ++ lib/ui/huge_listview/scroll_bar_thumb.dart | 2 ++ lib/ui/landing_page_widget.dart | 2 ++ lib/ui/lifecycle_event_handler.dart | 2 ++ lib/ui/loading_photos_widget.dart | 2 ++ lib/ui/memories_widget.dart | 2 ++ lib/ui/nav_bar.dart | 2 ++ lib/ui/payment/billing_questions_widget.dart | 2 ++ lib/ui/payment/child_subscription_widget.dart | 2 ++ lib/ui/payment/payment_web_page.dart | 2 ++ lib/ui/payment/skip_subscription_widget.dart | 2 ++ lib/ui/payment/stripe_subscription_page.dart | 2 ++ lib/ui/payment/subscription.dart | 2 ++ lib/ui/payment/subscription_common_widgets.dart | 2 ++ lib/ui/payment/subscription_page.dart | 2 ++ lib/ui/payment/subscription_plan_widget.dart | 2 ++ lib/ui/settings/account_section_widget.dart | 2 ++ lib/ui/settings/app_update_dialog.dart | 2 ++ lib/ui/settings/app_version_widget.dart | 2 ++ lib/ui/settings/backup_section_widget.dart | 2 ++ lib/ui/settings/common_settings.dart | 2 ++ lib/ui/settings/danger_section_widget.dart | 2 ++ lib/ui/settings/debug_section_widget.dart | 2 ++ lib/ui/settings/details_section_widget.dart | 2 ++ lib/ui/settings/info_section_widget.dart | 2 ++ lib/ui/settings/security_section_widget.dart | 2 ++ lib/ui/settings/settings_section_title.dart | 2 ++ lib/ui/settings/settings_text_item.dart | 2 ++ lib/ui/settings/social_section_widget.dart | 2 ++ lib/ui/settings/support_section_widget.dart | 2 ++ lib/ui/settings/theme_switch_widget.dart | 2 ++ lib/ui/settings_page.dart | 2 ++ lib/ui/shared_collections_gallery.dart | 2 ++ lib/ui/sharing/manage_links_widget.dart | 2 ++ lib/ui/sharing/share_collection_widget.dart | 2 ++ lib/ui/status_bar_widget.dart | 2 ++ lib/ui/tools/app_lock.dart | 2 ++ lib/ui/tools/debug/log_file_viewer.dart | 2 ++ lib/ui/tools/deduplicate_page.dart | 2 ++ lib/ui/tools/editor/filtered_image.dart | 2 ++ lib/ui/tools/editor/image_editor_page.dart | 2 ++ lib/ui/tools/free_space_page.dart | 2 ++ lib/ui/tools/lock_screen.dart | 2 ++ lib/ui/tools/set_wallpaper_dialog.dart | 2 ++ lib/ui/viewer/file/collections_list_of_file_widget.dart | 2 ++ lib/ui/viewer/file/custom_app_bar.dart | 2 ++ lib/ui/viewer/file/detail_page.dart | 2 ++ lib/ui/viewer/file/device_folders_list_of_file_widget.dart | 2 ++ lib/ui/viewer/file/exif_info_dialog.dart | 2 ++ lib/ui/viewer/file/fading_app_bar.dart | 2 ++ lib/ui/viewer/file/fading_bottom_bar.dart | 2 ++ lib/ui/viewer/file/file_icons_widget.dart | 2 ++ lib/ui/viewer/file/file_info_collection_widget.dart | 2 ++ lib/ui/viewer/file/file_info_widget.dart | 2 ++ lib/ui/viewer/file/file_widget.dart | 2 ++ lib/ui/viewer/file/raw_exif_button.dart | 2 ++ lib/ui/viewer/file/thumbnail_widget.dart | 2 ++ lib/ui/viewer/file/video_controls.dart | 2 ++ lib/ui/viewer/file/video_widget.dart | 2 ++ lib/ui/viewer/file/zoomable_image.dart | 2 ++ lib/ui/viewer/file/zoomable_live_image.dart | 2 ++ lib/ui/viewer/gallery/archive_page.dart | 2 ++ lib/ui/viewer/gallery/collection_page.dart | 2 ++ lib/ui/viewer/gallery/device_all_page.dart | 2 ++ lib/ui/viewer/gallery/device_folder_page.dart | 2 ++ lib/ui/viewer/gallery/empte_state.dart | 2 ++ lib/ui/viewer/gallery/gallery.dart | 2 ++ lib/ui/viewer/gallery/gallery_app_bar_widget.dart | 2 ++ lib/ui/viewer/gallery/gallery_footer_widget.dart | 2 ++ lib/ui/viewer/gallery/gallery_overlay_widget.dart | 2 ++ lib/ui/viewer/gallery/trash_page.dart | 2 ++ lib/ui/viewer/search/collections/files_from_holiday_page.dart | 2 ++ lib/ui/viewer/search/collections/files_from_month_page.dart | 2 ++ lib/ui/viewer/search/collections/files_from_year_page.dart | 2 ++ lib/ui/viewer/search/collections/files_in_location_page.dart | 2 ++ .../search/search_result_widgets/collection_result_widget.dart | 2 ++ .../search/search_result_widgets/file_result_widget.dart | 2 ++ .../search/search_result_widgets/holiday_result_widget.dart | 2 ++ .../search/search_result_widgets/location_result_widget.dart | 2 ++ .../search/search_result_widgets/month_result_widget.dart | 2 ++ .../viewer/search/search_result_widgets/no_result_widget.dart | 2 ++ .../search_result_widgets/search_result_thumbnail_widget.dart | 2 ++ .../search/search_result_widgets/year_result_widget.dart | 2 ++ lib/ui/viewer/search/search_suffix_icon_widget.dart | 2 ++ lib/ui/viewer/search/search_suggestions.dart | 2 ++ lib/ui/viewer/search/search_widget.dart | 2 ++ lib/utils/auth_util.dart | 2 ++ lib/utils/crypto_util.dart | 2 ++ lib/utils/data_util.dart | 2 ++ lib/utils/date_time_util.dart | 2 ++ lib/utils/debouncer.dart | 2 ++ lib/utils/delete_file_util.dart | 2 ++ lib/utils/dialog_util.dart | 2 ++ lib/utils/diff_fetcher.dart | 2 ++ lib/utils/email_util.dart | 2 ++ lib/utils/exif_util.dart | 2 ++ lib/utils/file_download_util.dart | 2 ++ lib/utils/file_sync_util.dart | 2 ++ lib/utils/file_uploader.dart | 2 ++ lib/utils/file_uploader_util.dart | 2 ++ lib/utils/file_util.dart | 2 ++ lib/utils/hex.dart | 2 ++ lib/utils/local_settings.dart | 2 ++ lib/utils/magic_util.dart | 2 ++ lib/utils/navigation_util.dart | 2 ++ lib/utils/share_util.dart | 2 ++ lib/utils/thumbnail_util.dart | 2 ++ lib/utils/toast_util.dart | 2 ++ lib/utils/trash_diff_fetcher.dart | 2 ++ lib/utils/validator_util.dart | 2 ++ pubspec.yaml | 2 +- 261 files changed, 522 insertions(+), 1 deletion(-) diff --git a/lib/app.dart b/lib/app.dart index 9280b2f63..919b0df23 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:adaptive_theme/adaptive_theme.dart'; diff --git a/lib/core/cache/image_cache.dart b/lib/core/cache/image_cache.dart index 29ad6b556..98386efd3 100644 --- a/lib/core/cache/image_cache.dart +++ b/lib/core/cache/image_cache.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io' as io; import 'package:photos/core/cache/lru_map.dart'; diff --git a/lib/core/cache/lru_map.dart b/lib/core/cache/lru_map.dart index 3b588ffc4..69d790077 100644 --- a/lib/core/cache/lru_map.dart +++ b/lib/core/cache/lru_map.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:collection'; typedef EvictionHandler = Function(K key, V value); diff --git a/lib/core/cache/thumbnail_cache.dart b/lib/core/cache/thumbnail_cache.dart index 3995ff8e8..4af10f215 100644 --- a/lib/core/cache/thumbnail_cache.dart +++ b/lib/core/cache/thumbnail_cache.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:typed_data'; import 'package:photos/core/cache/lru_map.dart'; diff --git a/lib/core/cache/thumbnail_cache_manager.dart b/lib/core/cache/thumbnail_cache_manager.dart index 9be732afe..6f04a5cea 100644 --- a/lib/core/cache/thumbnail_cache_manager.dart +++ b/lib/core/cache/thumbnail_cache_manager.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter_cache_manager/flutter_cache_manager.dart'; class ThumbnailCacheManager { diff --git a/lib/core/cache/video_cache_manager.dart b/lib/core/cache/video_cache_manager.dart index ada01c080..9a5fcfdd6 100644 --- a/lib/core/cache/video_cache_manager.dart +++ b/lib/core/cache/video_cache_manager.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter_cache_manager/flutter_cache_manager.dart'; class VideoCacheManager { diff --git a/lib/core/configuration.dart b/lib/core/configuration.dart index 9b7d6182e..3cf9763e2 100644 --- a/lib/core/configuration.dart +++ b/lib/core/configuration.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:io' as io; import 'dart:typed_data'; diff --git a/lib/core/constants.dart b/lib/core/constants.dart index 106786689..70728e577 100644 --- a/lib/core/constants.dart +++ b/lib/core/constants.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + const int kThumbnailSmallSize = 256; const int kThumbnailQuality = 50; const int kThumbnailLargeSize = 512; diff --git a/lib/core/error-reporting/super_logging.dart b/lib/core/error-reporting/super_logging.dart index 3884d0e78..cee59567f 100644 --- a/lib/core/error-reporting/super_logging.dart +++ b/lib/core/error-reporting/super_logging.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + library super_logging; import 'dart:async'; diff --git a/lib/core/error-reporting/tunneled_transport.dart b/lib/core/error-reporting/tunneled_transport.dart index 9a4180e6b..3234b88f9 100644 --- a/lib/core/error-reporting/tunneled_transport.dart +++ b/lib/core/error-reporting/tunneled_transport.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:http/http.dart'; diff --git a/lib/core/errors.dart b/lib/core/errors.dart index 8b0cf4c8a..77c66aeaf 100644 --- a/lib/core/errors.dart +++ b/lib/core/errors.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + class InvalidFileError extends ArgumentError { InvalidFileError(String message) : super(message); } diff --git a/lib/core/event_bus.dart b/lib/core/event_bus.dart index 162a10743..0f984f410 100644 --- a/lib/core/event_bus.dart +++ b/lib/core/event_bus.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:event_bus/event_bus.dart'; class Bus { diff --git a/lib/core/network.dart b/lib/core/network.dart index 1c90167c1..a6a7d4d2a 100644 --- a/lib/core/network.dart +++ b/lib/core/network.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:alice/alice.dart'; diff --git a/lib/data/holidays.dart b/lib/data/holidays.dart index 150b55a63..831da3f1c 100644 --- a/lib/data/holidays.dart +++ b/lib/data/holidays.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/search/holiday_search_result.dart'; const List allHolidays = [ diff --git a/lib/data/months.dart b/lib/data/months.dart index 700a35533..d1eab1e96 100644 --- a/lib/data/months.dart +++ b/lib/data/months.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/search/month_search_result.dart'; List allMonths = [ diff --git a/lib/data/years.dart b/lib/data/years.dart index 2b2e04d91..b7acc3fb5 100644 --- a/lib/data/years.dart +++ b/lib/data/years.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/utils/date_time_util.dart'; class YearsData { diff --git a/lib/db/collections_db.dart b/lib/db/collections_db.dart index d83fed142..275a6f3fd 100644 --- a/lib/db/collections_db.dart +++ b/lib/db/collections_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:io'; diff --git a/lib/db/file_updation_db.dart b/lib/db/file_updation_db.dart index 02ff00c7a..276dc8b46 100644 --- a/lib/db/file_updation_db.dart +++ b/lib/db/file_updation_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/foundation.dart'; diff --git a/lib/db/files_db.dart b/lib/db/files_db.dart index 793181b82..dd0ae679a 100644 --- a/lib/db/files_db.dart +++ b/lib/db/files_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/foundation.dart'; diff --git a/lib/db/ignored_files_db.dart b/lib/db/ignored_files_db.dart index 6cb526e38..26fbb2fd0 100644 --- a/lib/db/ignored_files_db.dart +++ b/lib/db/ignored_files_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:logging/logging.dart'; diff --git a/lib/db/memories_db.dart b/lib/db/memories_db.dart index 736912644..8b87a64b2 100644 --- a/lib/db/memories_db.dart +++ b/lib/db/memories_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/db/public_keys_db.dart b/lib/db/public_keys_db.dart index aea09ea1a..0070106de 100644 --- a/lib/db/public_keys_db.dart +++ b/lib/db/public_keys_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/db/trash_db.dart b/lib/db/trash_db.dart index b84e4ca8b..5cc303037 100644 --- a/lib/db/trash_db.dart +++ b/lib/db/trash_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:io'; diff --git a/lib/db/upload_locks_db.dart b/lib/db/upload_locks_db.dart index 1739a695f..2648ea4df 100644 --- a/lib/db/upload_locks_db.dart +++ b/lib/db/upload_locks_db.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/ente_theme_data.dart b/lib/ente_theme_data.dart index 8ba243e6b..f70c53352 100644 --- a/lib/ente_theme_data.dart +++ b/lib/ente_theme_data.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:flutter_datetime_picker/flutter_datetime_picker.dart'; diff --git a/lib/events/account_configured_event.dart b/lib/events/account_configured_event.dart index e102e614e..eafbd9498 100644 --- a/lib/events/account_configured_event.dart +++ b/lib/events/account_configured_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class AccountConfiguredEvent extends Event {} diff --git a/lib/events/backup_folders_updated_event.dart b/lib/events/backup_folders_updated_event.dart index 83f592aef..fdcb69537 100644 --- a/lib/events/backup_folders_updated_event.dart +++ b/lib/events/backup_folders_updated_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class BackupFoldersUpdatedEvent extends Event {} diff --git a/lib/events/collection_updated_event.dart b/lib/events/collection_updated_event.dart index 202366c44..1b6f9ed1c 100644 --- a/lib/events/collection_updated_event.dart +++ b/lib/events/collection_updated_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/files_updated_event.dart'; class CollectionUpdatedEvent extends FilesUpdatedEvent { diff --git a/lib/events/event.dart b/lib/events/event.dart index 61a42e710..95c3c9ecb 100644 --- a/lib/events/event.dart +++ b/lib/events/event.dart @@ -1 +1,3 @@ +// @dart=2.9 + class Event {} diff --git a/lib/events/files_updated_event.dart b/lib/events/files_updated_event.dart index 56afe3c08..133a2898a 100644 --- a/lib/events/files_updated_event.dart +++ b/lib/events/files_updated_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; import 'package:photos/models/file.dart'; diff --git a/lib/events/force_reload_home_gallery_event.dart b/lib/events/force_reload_home_gallery_event.dart index b55c66872..a4d623872 100644 --- a/lib/events/force_reload_home_gallery_event.dart +++ b/lib/events/force_reload_home_gallery_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class ForceReloadHomeGalleryEvent extends Event { diff --git a/lib/events/force_reload_trash_page_event.dart b/lib/events/force_reload_trash_page_event.dart index dcb40a8f4..ef38e18bc 100644 --- a/lib/events/force_reload_trash_page_event.dart +++ b/lib/events/force_reload_trash_page_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class ForceReloadTrashPageEvent extends Event { diff --git a/lib/events/local_photos_updated_event.dart b/lib/events/local_photos_updated_event.dart index 86348d278..da44f19e1 100644 --- a/lib/events/local_photos_updated_event.dart +++ b/lib/events/local_photos_updated_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/files_updated_event.dart'; class LocalPhotosUpdatedEvent extends FilesUpdatedEvent { diff --git a/lib/events/permission_granted_event.dart b/lib/events/permission_granted_event.dart index 6602d4fd7..5f5f9ddf5 100644 --- a/lib/events/permission_granted_event.dart +++ b/lib/events/permission_granted_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class PermissionGrantedEvent extends Event {} diff --git a/lib/events/signed_in_event.dart b/lib/events/signed_in_event.dart index 907d1acc4..9ca09ba69 100644 --- a/lib/events/signed_in_event.dart +++ b/lib/events/signed_in_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class SignedInEvent extends Event {} diff --git a/lib/events/subscription_purchased_event.dart b/lib/events/subscription_purchased_event.dart index bc90b0987..a278d7b11 100644 --- a/lib/events/subscription_purchased_event.dart +++ b/lib/events/subscription_purchased_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class SubscriptionPurchasedEvent extends Event {} diff --git a/lib/events/sync_status_update_event.dart b/lib/events/sync_status_update_event.dart index 9684c1300..5f9e213b7 100644 --- a/lib/events/sync_status_update_event.dart +++ b/lib/events/sync_status_update_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class SyncStatusUpdate extends Event { diff --git a/lib/events/tab_changed_event.dart b/lib/events/tab_changed_event.dart index cbe4ab8f0..6b4fb4e8f 100644 --- a/lib/events/tab_changed_event.dart +++ b/lib/events/tab_changed_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class TabChangedEvent extends Event { diff --git a/lib/events/trigger_logout_event.dart b/lib/events/trigger_logout_event.dart index 77672c55b..0fcfc80f4 100644 --- a/lib/events/trigger_logout_event.dart +++ b/lib/events/trigger_logout_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class TriggerLogoutEvent extends Event {} diff --git a/lib/events/two_factor_status_change_event.dart b/lib/events/two_factor_status_change_event.dart index 0419d1787..6bd45ac78 100644 --- a/lib/events/two_factor_status_change_event.dart +++ b/lib/events/two_factor_status_change_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class TwoFactorStatusChangeEvent extends Event { diff --git a/lib/events/user_details_changed_event.dart b/lib/events/user_details_changed_event.dart index 559aedab2..f9d4bf3bf 100644 --- a/lib/events/user_details_changed_event.dart +++ b/lib/events/user_details_changed_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class UserDetailsChangedEvent extends Event {} diff --git a/lib/events/user_logged_out_event.dart b/lib/events/user_logged_out_event.dart index aed28acde..e2b8ee374 100644 --- a/lib/events/user_logged_out_event.dart +++ b/lib/events/user_logged_out_event.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/events/event.dart'; class UserLoggedOutEvent extends Event {} diff --git a/lib/l10n/l10n.dart b/lib/l10n/l10n.dart index 138f569c0..bb46c88ed 100644 --- a/lib/l10n/l10n.dart +++ b/lib/l10n/l10n.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:ui'; class L10n { diff --git a/lib/main.dart b/lib/main.dart index d8ae140ed..f2600a7e4 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/models/backup_status.dart b/lib/models/backup_status.dart index af2ec9331..aad1de06c 100644 --- a/lib/models/backup_status.dart +++ b/lib/models/backup_status.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + class BackupStatus { final List localIDs; final int size; diff --git a/lib/models/billing_plan.dart b/lib/models/billing_plan.dart index 78f7ddfbf..f69628179 100644 --- a/lib/models/billing_plan.dart +++ b/lib/models/billing_plan.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:flutter/foundation.dart'; diff --git a/lib/models/collection.dart b/lib/models/collection.dart index 4995d8313..213d9c5b5 100644 --- a/lib/models/collection.dart +++ b/lib/models/collection.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:core'; diff --git a/lib/models/collection_file_item.dart b/lib/models/collection_file_item.dart index d8907364e..80ca196c1 100644 --- a/lib/models/collection_file_item.dart +++ b/lib/models/collection_file_item.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; class CollectionFileItem { diff --git a/lib/models/collection_items.dart b/lib/models/collection_items.dart index a32530fe4..e9f3abf56 100644 --- a/lib/models/collection_items.dart +++ b/lib/models/collection_items.dart @@ -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'; diff --git a/lib/models/delete_account.dart b/lib/models/delete_account.dart index e5c23f596..49ce9e955 100644 --- a/lib/models/delete_account.dart +++ b/lib/models/delete_account.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/foundation.dart'; class DeleteChallengeResponse { diff --git a/lib/models/derived_key_result.dart b/lib/models/derived_key_result.dart index c6f4c13df..c67e4af96 100644 --- a/lib/models/derived_key_result.dart +++ b/lib/models/derived_key_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:typed_data'; class DerivedKeyResult { diff --git a/lib/models/device_folder.dart b/lib/models/device_folder.dart index 2c6809a7c..e7e8dd604 100644 --- a/lib/models/device_folder.dart +++ b/lib/models/device_folder.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; class DeviceFolder { diff --git a/lib/models/duplicate_files.dart b/lib/models/duplicate_files.dart index 2e1c934cc..3d74dee85 100644 --- a/lib/models/duplicate_files.dart +++ b/lib/models/duplicate_files.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:photos/models/file.dart'; diff --git a/lib/models/encryption_result.dart b/lib/models/encryption_result.dart index 3499a4841..29c11b98c 100644 --- a/lib/models/encryption_result.dart +++ b/lib/models/encryption_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:typed_data'; class EncryptionResult { diff --git a/lib/models/ente_file.dart b/lib/models/ente_file.dart index 17baf07f5..4758bb4eb 100644 --- a/lib/models/ente_file.dart +++ b/lib/models/ente_file.dart @@ -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. diff --git a/lib/models/file.dart b/lib/models/file.dart index 7089fed24..7c693229a 100644 --- a/lib/models/file.dart +++ b/lib/models/file.dart @@ -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'; diff --git a/lib/models/file_load_result.dart b/lib/models/file_load_result.dart index 5c0d55486..64b9cb916 100644 --- a/lib/models/file_load_result.dart +++ b/lib/models/file_load_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; class FileLoadResult { diff --git a/lib/models/file_type.dart b/lib/models/file_type.dart index e9f0a13d0..e4d592bda 100644 --- a/lib/models/file_type.dart +++ b/lib/models/file_type.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + enum FileType { image, video, diff --git a/lib/models/filters/gallery_items_filter.dart b/lib/models/filters/gallery_items_filter.dart index f0e643aea..1a8bd7e5b 100644 --- a/lib/models/filters/gallery_items_filter.dart +++ b/lib/models/filters/gallery_items_filter.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; class GalleryItemsFilter { diff --git a/lib/models/filters/important_items_filter.dart b/lib/models/filters/important_items_filter.dart index ffd3b4dc4..22d25d8b6 100644 --- a/lib/models/filters/important_items_filter.dart +++ b/lib/models/filters/important_items_filter.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:path/path.dart'; diff --git a/lib/models/gallery_type.dart b/lib/models/gallery_type.dart index 545adfa3b..a99a1a9f1 100644 --- a/lib/models/gallery_type.dart +++ b/lib/models/gallery_type.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + enum GalleryType { homepage, archive, diff --git a/lib/models/ignored_file.dart b/lib/models/ignored_file.dart index bc890f633..4437d0953 100644 --- a/lib/models/ignored_file.dart +++ b/lib/models/ignored_file.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/trash_file.dart'; const kIgnoreReasonTrash = "trash"; diff --git a/lib/models/key_attributes.dart b/lib/models/key_attributes.dart index d3b4812b6..3acc51396 100644 --- a/lib/models/key_attributes.dart +++ b/lib/models/key_attributes.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; class KeyAttributes { diff --git a/lib/models/key_gen_result.dart b/lib/models/key_gen_result.dart index 1f8b9851e..c074f0447 100644 --- a/lib/models/key_gen_result.dart +++ b/lib/models/key_gen_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/key_attributes.dart'; import 'package:photos/models/private_key_attributes.dart'; diff --git a/lib/models/location.dart b/lib/models/location.dart index 89b268a5f..5b87828fc 100644 --- a/lib/models/location.dart +++ b/lib/models/location.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + class Location { final double latitude; final double longitude; diff --git a/lib/models/magic_metadata.dart b/lib/models/magic_metadata.dart index 28dad62e0..fedc1a843 100644 --- a/lib/models/magic_metadata.dart +++ b/lib/models/magic_metadata.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; const kVisibilityVisible = 0; diff --git a/lib/models/memory.dart b/lib/models/memory.dart index 21e503ab9..3a8bc97f7 100644 --- a/lib/models/memory.dart +++ b/lib/models/memory.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; class Memory { diff --git a/lib/models/private_key_attributes.dart b/lib/models/private_key_attributes.dart index c92f017fc..b770ada62 100644 --- a/lib/models/private_key_attributes.dart +++ b/lib/models/private_key_attributes.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + class PrivateKeyAttributes { final String key; final String recoveryKey; diff --git a/lib/models/public_key.dart b/lib/models/public_key.dart index 0d14a4a55..9908bbcf3 100644 --- a/lib/models/public_key.dart +++ b/lib/models/public_key.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + class PublicKey { final String email; final String publicKey; diff --git a/lib/models/search/album_search_result.dart b/lib/models/search/album_search_result.dart index 5ce2b8874..48bf64251 100644 --- a/lib/models/search/album_search_result.dart +++ b/lib/models/search/album_search_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/collection_items.dart'; import 'package:photos/models/search/search_results.dart'; diff --git a/lib/models/search/file_search_result.dart b/lib/models/search/file_search_result.dart index c89572c1b..ab276535a 100644 --- a/lib/models/search/file_search_result.dart +++ b/lib/models/search/file_search_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; import 'package:photos/models/search/search_results.dart'; diff --git a/lib/models/search/holiday_search_result.dart b/lib/models/search/holiday_search_result.dart index e060d7275..c10c8e09f 100644 --- a/lib/models/search/holiday_search_result.dart +++ b/lib/models/search/holiday_search_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; import 'package:photos/models/search/search_results.dart'; diff --git a/lib/models/search/location_api_response.dart b/lib/models/search/location_api_response.dart index 2b1cfd629..12c1dfdf6 100644 --- a/lib/models/search/location_api_response.dart +++ b/lib/models/search/location_api_response.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + class LocationApiResponse { final List results; LocationApiResponse({ diff --git a/lib/models/search/location_search_result.dart b/lib/models/search/location_search_result.dart index 43322243c..b5ae689f1 100644 --- a/lib/models/search/location_search_result.dart +++ b/lib/models/search/location_search_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; import 'package:photos/models/search/search_results.dart'; diff --git a/lib/models/search/month_search_result.dart b/lib/models/search/month_search_result.dart index 6a4405732..965a20c8a 100644 --- a/lib/models/search/month_search_result.dart +++ b/lib/models/search/month_search_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; import 'package:photos/models/search/search_results.dart'; diff --git a/lib/models/search/search_results.dart b/lib/models/search/search_results.dart index d0823c130..870f32a61 100644 --- a/lib/models/search/search_results.dart +++ b/lib/models/search/search_results.dart @@ -1 +1,3 @@ +// @dart=2.9 + class SearchResult {} diff --git a/lib/models/search/year_search_result.dart b/lib/models/search/year_search_result.dart index 39661696e..9bfcbaa43 100644 --- a/lib/models/search/year_search_result.dart +++ b/lib/models/search/year_search_result.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; import 'package:photos/models/search/search_results.dart'; diff --git a/lib/models/selected_files.dart b/lib/models/selected_files.dart index 3021ab765..ded8d8365 100644 --- a/lib/models/selected_files.dart +++ b/lib/models/selected_files.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/foundation.dart'; import 'package:photos/models/file.dart'; diff --git a/lib/models/sessions.dart b/lib/models/sessions.dart index 4371650c2..f67c64af2 100644 --- a/lib/models/sessions.dart +++ b/lib/models/sessions.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:flutter/foundation.dart'; diff --git a/lib/models/set_keys_request.dart b/lib/models/set_keys_request.dart index eff0af308..520245b28 100644 --- a/lib/models/set_keys_request.dart +++ b/lib/models/set_keys_request.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; class SetKeysRequest { diff --git a/lib/models/set_recovery_key_request.dart b/lib/models/set_recovery_key_request.dart index fedec8929..9fa91567a 100644 --- a/lib/models/set_recovery_key_request.dart +++ b/lib/models/set_recovery_key_request.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; class SetRecoveryKeyRequest { diff --git a/lib/models/subscription.dart b/lib/models/subscription.dart index 976b7af37..7ca545f23 100644 --- a/lib/models/subscription.dart +++ b/lib/models/subscription.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; const kFreeProductID = "free"; diff --git a/lib/models/trash_file.dart b/lib/models/trash_file.dart index 08dccd8f0..4e0b89414 100644 --- a/lib/models/trash_file.dart +++ b/lib/models/trash_file.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:photos/models/file.dart'; class TrashFile extends File { diff --git a/lib/models/trash_item_request.dart b/lib/models/trash_item_request.dart index 199f54114..8a522dd82 100644 --- a/lib/models/trash_item_request.dart +++ b/lib/models/trash_item_request.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + class TrashRequest { final int fileID; final int collectionID; diff --git a/lib/models/update_share_url_request.dart b/lib/models/update_share_url_request.dart index 8b1378917..5a2075093 100644 --- a/lib/models/update_share_url_request.dart +++ b/lib/models/update_share_url_request.dart @@ -1 +1,3 @@ +// @dart=2.9 + diff --git a/lib/models/upload_url.dart b/lib/models/upload_url.dart index 1e785c537..ba6714b7f 100644 --- a/lib/models/upload_url.dart +++ b/lib/models/upload_url.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; class UploadURL { diff --git a/lib/models/user_details.dart b/lib/models/user_details.dart index ff6993c72..c662e3f7d 100644 --- a/lib/models/user_details.dart +++ b/lib/models/user_details.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math'; import 'package:collection/collection.dart'; diff --git a/lib/services/app_lifecycle_service.dart b/lib/services/app_lifecycle_service.dart index 55c6bf959..adc20cb66 100644 --- a/lib/services/app_lifecycle_service.dart +++ b/lib/services/app_lifecycle_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:logging/logging.dart'; class AppLifecycleService { diff --git a/lib/services/billing_service.dart b/lib/services/billing_service.dart index 6165bdfa0..fc36044cc 100644 --- a/lib/services/billing_service.dart +++ b/lib/services/billing_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:dio/dio.dart'; diff --git a/lib/services/collections_service.dart b/lib/services/collections_service.dart index 498b0164c..d3516e301 100644 --- a/lib/services/collections_service.dart +++ b/lib/services/collections_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:math'; import 'dart:typed_data'; diff --git a/lib/services/deduplication_service.dart b/lib/services/deduplication_service.dart index 5c843b091..536d23a8f 100644 --- a/lib/services/deduplication_service.dart +++ b/lib/services/deduplication_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:dio/dio.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/configuration.dart'; diff --git a/lib/services/favorites_service.dart b/lib/services/favorites_service.dart index e5d25e026..b1f89bbd5 100644 --- a/lib/services/favorites_service.dart +++ b/lib/services/favorites_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:flutter_sodium/flutter_sodium.dart'; diff --git a/lib/services/feature_flag_service.dart b/lib/services/feature_flag_service.dart index 544bf96c6..1e6668296 100644 --- a/lib/services/feature_flag_service.dart +++ b/lib/services/feature_flag_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:io'; diff --git a/lib/services/file_magic_service.dart b/lib/services/file_magic_service.dart index 0943e2591..bd2a63b1c 100644 --- a/lib/services/file_magic_service.dart +++ b/lib/services/file_magic_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:dio/dio.dart'; diff --git a/lib/services/ignored_files_service.dart b/lib/services/ignored_files_service.dart index df8b28faa..cf6a1f838 100644 --- a/lib/services/ignored_files_service.dart +++ b/lib/services/ignored_files_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/services/local_authentication_service.dart b/lib/services/local_authentication_service.dart index 59866cc2c..369f87d37 100644 --- a/lib/services/local_authentication_service.dart +++ b/lib/services/local_authentication_service.dart @@ -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'; diff --git a/lib/services/local_file_update_service.dart b/lib/services/local_file_update_service.dart index fd70d4fa3..636870a72 100644 --- a/lib/services/local_file_update_service.dart +++ b/lib/services/local_file_update_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:core'; import 'dart:io'; diff --git a/lib/services/local_sync_service.dart b/lib/services/local_sync_service.dart index 60af14031..7401c0be6 100644 --- a/lib/services/local_sync_service.dart +++ b/lib/services/local_sync_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/services/memories_service.dart b/lib/services/memories_service.dart index 3d656be7d..f678aec4d 100644 --- a/lib/services/memories_service.dart +++ b/lib/services/memories_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/foundation.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/constants.dart'; diff --git a/lib/services/notification_service.dart b/lib/services/notification_service.dart index c8760f284..1ff160970 100644 --- a/lib/services/notification_service.dart +++ b/lib/services/notification_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; diff --git a/lib/services/push_service.dart b/lib/services/push_service.dart index fa6a10e9e..d3e701552 100644 --- a/lib/services/push_service.dart +++ b/lib/services/push_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:dio/dio.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:firebase_messaging/firebase_messaging.dart'; diff --git a/lib/services/remote_sync_service.dart b/lib/services/remote_sync_service.dart index 944340645..7817105cc 100644 --- a/lib/services/remote_sync_service.dart +++ b/lib/services/remote_sync_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; import 'dart:math'; diff --git a/lib/services/search_service.dart b/lib/services/search_service.dart index 3e51a4c85..961ea0045 100644 --- a/lib/services/search_service.dart +++ b/lib/services/search_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:dio/dio.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/configuration.dart'; diff --git a/lib/services/sync_service.dart b/lib/services/sync_service.dart index c8ceb7edc..aa99b1d74 100644 --- a/lib/services/sync_service.dart +++ b/lib/services/sync_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/services/trash_sync_service.dart b/lib/services/trash_sync_service.dart index 24664223f..3c05d7ea1 100644 --- a/lib/services/trash_sync_service.dart +++ b/lib/services/trash_sync_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:dio/dio.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/configuration.dart'; diff --git a/lib/services/update_service.dart b/lib/services/update_service.dart index dfdd69dc0..0917b6204 100644 --- a/lib/services/update_service.dart +++ b/lib/services/update_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/foundation.dart'; diff --git a/lib/services/user_service.dart b/lib/services/user_service.dart index cc621dc4a..5861634f6 100644 --- a/lib/services/user_service.dart +++ b/lib/services/user_service.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:typed_data'; import 'package:dio/dio.dart'; diff --git a/lib/ui/account/change_email_dialog.dart b/lib/ui/account/change_email_dialog.dart index 6ec6bcc6a..d9522acc5 100644 --- a/lib/ui/account/change_email_dialog.dart +++ b/lib/ui/account/change_email_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/services/user_service.dart'; import 'package:photos/utils/dialog_util.dart'; diff --git a/lib/ui/account/delete_account_page.dart b/lib/ui/account/delete_account_page.dart index 36f23857f..50f7452d8 100644 --- a/lib/ui/account/delete_account_page.dart +++ b/lib/ui/account/delete_account_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:flutter/material.dart'; diff --git a/lib/ui/account/email_entry_page.dart b/lib/ui/account/email_entry_page.dart index 9f0273f5d..df99c631d 100644 --- a/lib/ui/account/email_entry_page.dart +++ b/lib/ui/account/email_entry_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:email_validator/email_validator.dart'; diff --git a/lib/ui/account/login_page.dart b/lib/ui/account/login_page.dart index 07180ebd6..9b6cb88b0 100644 --- a/lib/ui/account/login_page.dart +++ b/lib/ui/account/login_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:email_validator/email_validator.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; diff --git a/lib/ui/account/ott_verification_page.dart b/lib/ui/account/ott_verification_page.dart index 5ec2527a5..19932e94a 100644 --- a/lib/ui/account/ott_verification_page.dart +++ b/lib/ui/account/ott_verification_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/services/user_service.dart'; diff --git a/lib/ui/account/password_entry_page.dart b/lib/ui/account/password_entry_page.dart index 3af5bc0a8..6f14f6516 100644 --- a/lib/ui/account/password_entry_page.dart +++ b/lib/ui/account/password_entry_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:logging/logging.dart'; diff --git a/lib/ui/account/password_reentry_page.dart b/lib/ui/account/password_reentry_page.dart index 9868bfd73..91593a321 100644 --- a/lib/ui/account/password_reentry_page.dart +++ b/lib/ui/account/password_reentry_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/configuration.dart'; diff --git a/lib/ui/account/recovery_key_page.dart b/lib/ui/account/recovery_key_page.dart index 8272d8d9c..84d097a57 100644 --- a/lib/ui/account/recovery_key_page.dart +++ b/lib/ui/account/recovery_key_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io' as io; import 'package:bip39/bip39.dart' as bip39; diff --git a/lib/ui/account/recovery_page.dart b/lib/ui/account/recovery_page.dart index 79212ccd0..4f0a5400e 100644 --- a/lib/ui/account/recovery_page.dart +++ b/lib/ui/account/recovery_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:ui'; import 'package:flutter/material.dart'; diff --git a/lib/ui/account/sessions_page.dart b/lib/ui/account/sessions_page.dart index f573ceb7c..44d6b5ff8 100644 --- a/lib/ui/account/sessions_page.dart +++ b/lib/ui/account/sessions_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/configuration.dart'; diff --git a/lib/ui/account/two_factor_authentication_page.dart b/lib/ui/account/two_factor_authentication_page.dart index fcea3df72..011a5f4e2 100644 --- a/lib/ui/account/two_factor_authentication_page.dart +++ b/lib/ui/account/two_factor_authentication_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:photos/services/user_service.dart'; diff --git a/lib/ui/account/two_factor_recovery_page.dart b/lib/ui/account/two_factor_recovery_page.dart index b790ef6c0..12450a81c 100644 --- a/lib/ui/account/two_factor_recovery_page.dart +++ b/lib/ui/account/two_factor_recovery_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:ui'; import 'package:flutter/material.dart'; diff --git a/lib/ui/account/two_factor_setup_page.dart b/lib/ui/account/two_factor_setup_page.dart index 3f67a72ee..9f2d1ade3 100644 --- a/lib/ui/account/two_factor_setup_page.dart +++ b/lib/ui/account/two_factor_setup_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:ui'; import 'package:flutter/material.dart'; diff --git a/lib/ui/backup_folder_selection_page.dart b/lib/ui/backup_folder_selection_page.dart index 34abc0be3..031c020a2 100644 --- a/lib/ui/backup_folder_selection_page.dart +++ b/lib/ui/backup_folder_selection_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'dart:ui'; diff --git a/lib/ui/collections/collection_item_widget.dart b/lib/ui/collections/collection_item_widget.dart index 482e7df80..41f74e015 100644 --- a/lib/ui/collections/collection_item_widget.dart +++ b/lib/ui/collections/collection_item_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math'; import 'package:flutter/material.dart'; diff --git a/lib/ui/collections/create_new_album_widget.dart b/lib/ui/collections/create_new_album_widget.dart index 390834138..3adf8dc4f 100644 --- a/lib/ui/collections/create_new_album_widget.dart +++ b/lib/ui/collections/create_new_album_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:photos/core/event_bus.dart'; diff --git a/lib/ui/collections/device_folder_icon_widget.dart b/lib/ui/collections/device_folder_icon_widget.dart index d340405c8..153424bce 100644 --- a/lib/ui/collections/device_folder_icon_widget.dart +++ b/lib/ui/collections/device_folder_icon_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/configuration.dart'; import 'package:photos/models/device_folder.dart'; diff --git a/lib/ui/collections/device_folders_grid_view_widget.dart b/lib/ui/collections/device_folders_grid_view_widget.dart index 20ffc46bf..efcf46976 100644 --- a/lib/ui/collections/device_folders_grid_view_widget.dart +++ b/lib/ui/collections/device_folders_grid_view_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/models/device_folder.dart'; import 'package:photos/ui/collections/device_folder_icon_widget.dart'; diff --git a/lib/ui/collections/ente_section_title.dart b/lib/ui/collections/ente_section_title.dart index 92969e757..e0dfa2551 100644 --- a/lib/ui/collections/ente_section_title.dart +++ b/lib/ui/collections/ente_section_title.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/collections/hidden_collections_button_widget.dart b/lib/ui/collections/hidden_collections_button_widget.dart index e968f547c..bb2e67ebe 100644 --- a/lib/ui/collections/hidden_collections_button_widget.dart +++ b/lib/ui/collections/hidden_collections_button_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/configuration.dart'; import 'package:photos/db/files_db.dart'; diff --git a/lib/ui/collections/remote_collections_grid_view_widget.dart b/lib/ui/collections/remote_collections_grid_view_widget.dart index 780160079..ac1ab3e74 100644 --- a/lib/ui/collections/remote_collections_grid_view_widget.dart +++ b/lib/ui/collections/remote_collections_grid_view_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math'; import 'package:flutter/material.dart'; diff --git a/lib/ui/collections/section_title.dart b/lib/ui/collections/section_title.dart index adbc4c810..ea62ba365 100644 --- a/lib/ui/collections/section_title.dart +++ b/lib/ui/collections/section_title.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class SectionTitle extends StatelessWidget { diff --git a/lib/ui/collections/trash_button_widget.dart b/lib/ui/collections/trash_button_widget.dart index 86f2779bb..5fb162080 100644 --- a/lib/ui/collections/trash_button_widget.dart +++ b/lib/ui/collections/trash_button_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/db/trash_db.dart'; import 'package:photos/ui/viewer/gallery/trash_page.dart'; diff --git a/lib/ui/collections_gallery_widget.dart b/lib/ui/collections_gallery_widget.dart index a76d25de3..f5da4c785 100644 --- a/lib/ui/collections_gallery_widget.dart +++ b/lib/ui/collections_gallery_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/ui/common/DividerWithPadding.dart b/lib/ui/common/DividerWithPadding.dart index 519950808..8be210db2 100644 --- a/lib/ui/common/DividerWithPadding.dart +++ b/lib/ui/common/DividerWithPadding.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class DividerWithPadding extends StatelessWidget { diff --git a/lib/ui/common/bottom_shadow.dart b/lib/ui/common/bottom_shadow.dart index ff88d7831..08dd69f23 100644 --- a/lib/ui/common/bottom_shadow.dart +++ b/lib/ui/common/bottom_shadow.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class BottomShadowWidget extends StatelessWidget { diff --git a/lib/ui/common/dialogs.dart b/lib/ui/common/dialogs.dart index e26b5b492..8d19a5e98 100644 --- a/lib/ui/common/dialogs.dart +++ b/lib/ui/common/dialogs.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/common/dynamic_fab.dart b/lib/ui/common/dynamic_fab.dart index 1b89ba1ac..abcdaa141 100644 --- a/lib/ui/common/dynamic_fab.dart +++ b/lib/ui/common/dynamic_fab.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math' as math; import 'package:flutter/material.dart'; diff --git a/lib/ui/common/gradient_button.dart b/lib/ui/common/gradient_button.dart index ec30407c9..061b2ccae 100644 --- a/lib/ui/common/gradient_button.dart +++ b/lib/ui/common/gradient_button.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class GradientButton extends StatelessWidget { diff --git a/lib/ui/common/linear_progress_dialog.dart b/lib/ui/common/linear_progress_dialog.dart index 8c4206a0d..6cd5c3de2 100644 --- a/lib/ui/common/linear_progress_dialog.dart +++ b/lib/ui/common/linear_progress_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/common/loading_widget.dart b/lib/ui/common/loading_widget.dart index 7d575b152..80d940947 100644 --- a/lib/ui/common/loading_widget.dart +++ b/lib/ui/common/loading_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/cupertino.dart'; class EnteLoadingWidget extends StatelessWidget { diff --git a/lib/ui/common/progress_dialog.dart b/lib/ui/common/progress_dialog.dart index ed8ec1df8..616d53f76 100644 --- a/lib/ui/common/progress_dialog.dart +++ b/lib/ui/common/progress_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; enum ProgressDialogType { normal, download } diff --git a/lib/ui/common/rename_dialog.dart b/lib/ui/common/rename_dialog.dart index c02ea0ae3..5629ae230 100644 --- a/lib/ui/common/rename_dialog.dart +++ b/lib/ui/common/rename_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/utils/dialog_util.dart'; diff --git a/lib/ui/common/report_bug_popup.dart b/lib/ui/common/report_bug_popup.dart index be5f1c9d2..a6372024c 100644 --- a/lib/ui/common/report_bug_popup.dart +++ b/lib/ui/common/report_bug_popup.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/utils/email_util.dart'; diff --git a/lib/ui/common/web_page.dart b/lib/ui/common/web_page.dart index c6ca70fa1..46fa69ad5 100644 --- a/lib/ui/common/web_page.dart +++ b/lib/ui/common/web_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; import 'package:photos/ui/common/loading_widget.dart'; diff --git a/lib/ui/create_collection_page.dart b/lib/ui/create_collection_page.dart index e37a9ed65..f69721e32 100644 --- a/lib/ui/create_collection_page.dart +++ b/lib/ui/create_collection_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/configuration.dart'; diff --git a/lib/ui/extents_page_view.dart b/lib/ui/extents_page_view.dart index 4f64395b6..12e3b1e1b 100644 --- a/lib/ui/extents_page_view.dart +++ b/lib/ui/extents_page_view.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/gestures.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart' hide PageView; diff --git a/lib/ui/grant_permissions_widget.dart b/lib/ui/grant_permissions_widget.dart index b14c5561d..091bc8844 100644 --- a/lib/ui/grant_permissions_widget.dart +++ b/lib/ui/grant_permissions_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/ui/header_error_widget.dart b/lib/ui/header_error_widget.dart index a87171dd6..d6b95d5d6 100644 --- a/lib/ui/header_error_widget.dart +++ b/lib/ui/header_error_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/errors.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/home_widget.dart b/lib/ui/home_widget.dart index 3040e5819..be6e412b5 100644 --- a/lib/ui/home_widget.dart +++ b/lib/ui/home_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; import 'dart:ui'; diff --git a/lib/ui/huge_listview/draggable_scrollbar.dart b/lib/ui/huge_listview/draggable_scrollbar.dart index 846968db2..002953346 100644 --- a/lib/ui/huge_listview/draggable_scrollbar.dart +++ b/lib/ui/huge_listview/draggable_scrollbar.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/foundation.dart'; diff --git a/lib/ui/huge_listview/huge_listview.dart b/lib/ui/huge_listview/huge_listview.dart index 3bb6c91d8..00b450616 100644 --- a/lib/ui/huge_listview/huge_listview.dart +++ b/lib/ui/huge_listview/huge_listview.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math' show max; import 'package:flutter/material.dart'; diff --git a/lib/ui/huge_listview/lazy_loading_gallery.dart b/lib/ui/huge_listview/lazy_loading_gallery.dart index 57287f143..4b1608e57 100644 --- a/lib/ui/huge_listview/lazy_loading_gallery.dart +++ b/lib/ui/huge_listview/lazy_loading_gallery.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:math'; diff --git a/lib/ui/huge_listview/place_holder_widget.dart b/lib/ui/huge_listview/place_holder_widget.dart index 781609146..33ee6cb94 100644 --- a/lib/ui/huge_listview/place_holder_widget.dart +++ b/lib/ui/huge_listview/place_holder_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class PlaceHolderWidget extends StatelessWidget { diff --git a/lib/ui/huge_listview/scroll_bar_thumb.dart b/lib/ui/huge_listview/scroll_bar_thumb.dart index de94fe7f0..cbeac572a 100644 --- a/lib/ui/huge_listview/scroll_bar_thumb.dart +++ b/lib/ui/huge_listview/scroll_bar_thumb.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class ScrollBarThumb extends StatelessWidget { diff --git a/lib/ui/landing_page_widget.dart b/lib/ui/landing_page_widget.dart index b25d68110..e54de1695 100644 --- a/lib/ui/landing_page_widget.dart +++ b/lib/ui/landing_page_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:dots_indicator/dots_indicator.dart'; diff --git a/lib/ui/lifecycle_event_handler.dart b/lib/ui/lifecycle_event_handler.dart index 68b6597b7..3f54c3438 100644 --- a/lib/ui/lifecycle_event_handler.dart +++ b/lib/ui/lifecycle_event_handler.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; diff --git a/lib/ui/loading_photos_widget.dart b/lib/ui/loading_photos_widget.dart index 273dc4cb0..812b2796e 100644 --- a/lib/ui/loading_photos_widget.dart +++ b/lib/ui/loading_photos_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/ui/memories_widget.dart b/lib/ui/memories_widget.dart index 620343f8b..33da0a95f 100644 --- a/lib/ui/memories_widget.dart +++ b/lib/ui/memories_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/memory.dart'; diff --git a/lib/ui/nav_bar.dart b/lib/ui/nav_bar.dart index 90f92964f..396678c40 100644 --- a/lib/ui/nav_bar.dart +++ b/lib/ui/nav_bar.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + library google_nav_bar; import 'dart:async'; diff --git a/lib/ui/payment/billing_questions_widget.dart b/lib/ui/payment/billing_questions_widget.dart index a723d0e1a..96d421554 100644 --- a/lib/ui/payment/billing_questions_widget.dart +++ b/lib/ui/payment/billing_questions_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:expansion_tile_card/expansion_tile_card.dart'; diff --git a/lib/ui/payment/child_subscription_widget.dart b/lib/ui/payment/child_subscription_widget.dart index b66029cd1..b5a3e527d 100644 --- a/lib/ui/payment/child_subscription_widget.dart +++ b/lib/ui/payment/child_subscription_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/user_details.dart'; diff --git a/lib/ui/payment/payment_web_page.dart b/lib/ui/payment/payment_web_page.dart index fd34309ab..8c7859d13 100644 --- a/lib/ui/payment/payment_web_page.dart +++ b/lib/ui/payment/payment_web_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/foundation.dart'; diff --git a/lib/ui/payment/skip_subscription_widget.dart b/lib/ui/payment/skip_subscription_widget.dart index 1b864ed18..b9a144d47 100644 --- a/lib/ui/payment/skip_subscription_widget.dart +++ b/lib/ui/payment/skip_subscription_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/events/subscription_purchased_event.dart'; diff --git a/lib/ui/payment/stripe_subscription_page.dart b/lib/ui/payment/stripe_subscription_page.dart index 6c6bd864c..ceff95c0f 100644 --- a/lib/ui/payment/stripe_subscription_page.dart +++ b/lib/ui/payment/stripe_subscription_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/ui/payment/subscription.dart b/lib/ui/payment/subscription.dart index 7beb8a66a..f4c8d1b27 100644 --- a/lib/ui/payment/subscription.dart +++ b/lib/ui/payment/subscription.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/cupertino.dart'; import 'package:photos/core/configuration.dart'; import 'package:photos/services/feature_flag_service.dart'; diff --git a/lib/ui/payment/subscription_common_widgets.dart b/lib/ui/payment/subscription_common_widgets.dart index 2e14dcf67..3638782e7 100644 --- a/lib/ui/payment/subscription_common_widgets.dart +++ b/lib/ui/payment/subscription_common_widgets.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/subscription.dart'; diff --git a/lib/ui/payment/subscription_page.dart b/lib/ui/payment/subscription_page.dart index b5d444026..93fb2f8e9 100644 --- a/lib/ui/payment/subscription_page.dart +++ b/lib/ui/payment/subscription_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/ui/payment/subscription_plan_widget.dart b/lib/ui/payment/subscription_plan_widget.dart index 65d9bd72f..776bd15e1 100644 --- a/lib/ui/payment/subscription_plan_widget.dart +++ b/lib/ui/payment/subscription_plan_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/utils/data_util.dart'; diff --git a/lib/ui/settings/account_section_widget.dart b/lib/ui/settings/account_section_widget.dart index 5dc333c66..b20ca3731 100644 --- a/lib/ui/settings/account_section_widget.dart +++ b/lib/ui/settings/account_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:expandable/expandable.dart'; import 'package:flutter/material.dart'; import 'package:flutter_sodium/flutter_sodium.dart'; diff --git a/lib/ui/settings/app_update_dialog.dart b/lib/ui/settings/app_update_dialog.dart index 91736b392..af6f5f939 100644 --- a/lib/ui/settings/app_update_dialog.dart +++ b/lib/ui/settings/app_update_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:open_file/open_file.dart'; diff --git a/lib/ui/settings/app_version_widget.dart b/lib/ui/settings/app_version_widget.dart index f524e66e0..25ea8a931 100644 --- a/lib/ui/settings/app_version_widget.dart +++ b/lib/ui/settings/app_version_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:photos/core/network.dart'; diff --git a/lib/ui/settings/backup_section_widget.dart b/lib/ui/settings/backup_section_widget.dart index 5e1ec3d05..ae8a02144 100644 --- a/lib/ui/settings/backup_section_widget.dart +++ b/lib/ui/settings/backup_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:expandable/expandable.dart'; diff --git a/lib/ui/settings/common_settings.dart b/lib/ui/settings/common_settings.dart index fbdf4094e..3e10951b4 100644 --- a/lib/ui/settings/common_settings.dart +++ b/lib/ui/settings/common_settings.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:expandable/expandable.dart'; diff --git a/lib/ui/settings/danger_section_widget.dart b/lib/ui/settings/danger_section_widget.dart index a52bdddb0..31d1c651d 100644 --- a/lib/ui/settings/danger_section_widget.dart +++ b/lib/ui/settings/danger_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:expandable/expandable.dart'; import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/settings/debug_section_widget.dart b/lib/ui/settings/debug_section_widget.dart index 6f1da497f..2c9d48815 100644 --- a/lib/ui/settings/debug_section_widget.dart +++ b/lib/ui/settings/debug_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:expandable/expandable.dart'; import 'package:flutter/material.dart'; import 'package:flutter_sodium/flutter_sodium.dart'; diff --git a/lib/ui/settings/details_section_widget.dart b/lib/ui/settings/details_section_widget.dart index b7a1df31d..2f468120a 100644 --- a/lib/ui/settings/details_section_widget.dart +++ b/lib/ui/settings/details_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/ui/settings/info_section_widget.dart b/lib/ui/settings/info_section_widget.dart index 2942fcf3f..4ef4f954d 100644 --- a/lib/ui/settings/info_section_widget.dart +++ b/lib/ui/settings/info_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:expandable/expandable.dart'; import 'package:flutter/material.dart'; import 'package:photos/services/update_service.dart'; diff --git a/lib/ui/settings/security_section_widget.dart b/lib/ui/settings/security_section_widget.dart index 0d9fada7d..374586681 100644 --- a/lib/ui/settings/security_section_widget.dart +++ b/lib/ui/settings/security_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; diff --git a/lib/ui/settings/settings_section_title.dart b/lib/ui/settings/settings_section_title.dart index 372b7879a..3c71ac178 100644 --- a/lib/ui/settings/settings_section_title.dart +++ b/lib/ui/settings/settings_section_title.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class SettingsSectionTitle extends StatelessWidget { diff --git a/lib/ui/settings/settings_text_item.dart b/lib/ui/settings/settings_text_item.dart index dd169701a..32dc01b08 100644 --- a/lib/ui/settings/settings_text_item.dart +++ b/lib/ui/settings/settings_text_item.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/ui/settings/social_section_widget.dart b/lib/ui/settings/social_section_widget.dart index f35a9c038..62baf3a9a 100644 --- a/lib/ui/settings/social_section_widget.dart +++ b/lib/ui/settings/social_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:expandable/expandable.dart'; diff --git a/lib/ui/settings/support_section_widget.dart b/lib/ui/settings/support_section_widget.dart index 5ba272303..b7b543c71 100644 --- a/lib/ui/settings/support_section_widget.dart +++ b/lib/ui/settings/support_section_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:expandable/expandable.dart'; diff --git a/lib/ui/settings/theme_switch_widget.dart b/lib/ui/settings/theme_switch_widget.dart index 21b7b6a85..a3a3f807e 100644 --- a/lib/ui/settings/theme_switch_widget.dart +++ b/lib/ui/settings/theme_switch_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:adaptive_theme/adaptive_theme.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; diff --git a/lib/ui/settings_page.dart b/lib/ui/settings_page.dart index 60374dadb..e50498dc5 100644 --- a/lib/ui/settings_page.dart +++ b/lib/ui/settings_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/foundation.dart'; diff --git a/lib/ui/shared_collections_gallery.dart b/lib/ui/shared_collections_gallery.dart index c0f4231e7..55cbb28cc 100644 --- a/lib/ui/shared_collections_gallery.dart +++ b/lib/ui/shared_collections_gallery.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:math'; diff --git a/lib/ui/sharing/manage_links_widget.dart b/lib/ui/sharing/manage_links_widget.dart index 2d2f0ac64..22fd50702 100644 --- a/lib/ui/sharing/manage_links_widget.dart +++ b/lib/ui/sharing/manage_links_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'package:flutter/cupertino.dart'; diff --git a/lib/ui/sharing/share_collection_widget.dart b/lib/ui/sharing/share_collection_widget.dart index 910a5c96d..b675739c5 100644 --- a/lib/ui/sharing/share_collection_widget.dart +++ b/lib/ui/sharing/share_collection_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:ui'; import 'package:fast_base58/fast_base58.dart'; diff --git a/lib/ui/status_bar_widget.dart b/lib/ui/status_bar_widget.dart index 6b0e3002f..4b5806044 100644 --- a/lib/ui/status_bar_widget.dart +++ b/lib/ui/status_bar_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/ui/tools/app_lock.dart b/lib/ui/tools/app_lock.dart index aae07cb77..761974a7d 100644 --- a/lib/ui/tools/app_lock.dart +++ b/lib/ui/tools/app_lock.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/ui/tools/debug/log_file_viewer.dart b/lib/ui/tools/debug/log_file_viewer.dart index 242c86ed9..ad88eb67e 100644 --- a/lib/ui/tools/debug/log_file_viewer.dart +++ b/lib/ui/tools/debug/log_file_viewer.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'dart:ui'; diff --git a/lib/ui/tools/deduplicate_page.dart b/lib/ui/tools/deduplicate_page.dart index f5be85def..8b788a380 100644 --- a/lib/ui/tools/deduplicate_page.dart +++ b/lib/ui/tools/deduplicate_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:photos/core/constants.dart'; diff --git a/lib/ui/tools/editor/filtered_image.dart b/lib/ui/tools/editor/filtered_image.dart index aec7744cd..7a4092737 100644 --- a/lib/ui/tools/editor/filtered_image.dart +++ b/lib/ui/tools/editor/filtered_image.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math'; import 'package:flutter/widgets.dart'; diff --git a/lib/ui/tools/editor/image_editor_page.dart b/lib/ui/tools/editor/image_editor_page.dart index 21af03bf2..196c5a475 100644 --- a/lib/ui/tools/editor/image_editor_page.dart +++ b/lib/ui/tools/editor/image_editor_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'dart:typed_data'; diff --git a/lib/ui/tools/free_space_page.dart b/lib/ui/tools/free_space_page.dart index c4ae2cb2d..ea0853e47 100644 --- a/lib/ui/tools/free_space_page.dart +++ b/lib/ui/tools/free_space_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:logging/logging.dart'; diff --git a/lib/ui/tools/lock_screen.dart b/lib/ui/tools/lock_screen.dart index 4d5ba188f..4f38cd0eb 100644 --- a/lib/ui/tools/lock_screen.dart +++ b/lib/ui/tools/lock_screen.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/ui/common/gradient_button.dart'; diff --git a/lib/ui/tools/set_wallpaper_dialog.dart b/lib/ui/tools/set_wallpaper_dialog.dart index 17053ff5a..26d1b9d93 100644 --- a/lib/ui/tools/set_wallpaper_dialog.dart +++ b/lib/ui/tools/set_wallpaper_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/models/file.dart'; diff --git a/lib/ui/viewer/file/collections_list_of_file_widget.dart b/lib/ui/viewer/file/collections_list_of_file_widget.dart index c7c247fcc..ee2f0a8e0 100644 --- a/lib/ui/viewer/file/collections_list_of_file_widget.dart +++ b/lib/ui/viewer/file/collections_list_of_file_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/models/collection_items.dart'; diff --git a/lib/ui/viewer/file/custom_app_bar.dart b/lib/ui/viewer/file/custom_app_bar.dart index 0a81210d1..40d03b7d5 100644 --- a/lib/ui/viewer/file/custom_app_bar.dart +++ b/lib/ui/viewer/file/custom_app_bar.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; class CustomAppBar extends PreferredSize { diff --git a/lib/ui/viewer/file/detail_page.dart b/lib/ui/viewer/file/detail_page.dart index ad0ed4c2b..97f3c194e 100644 --- a/lib/ui/viewer/file/detail_page.dart +++ b/lib/ui/viewer/file/detail_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:extended_image/extended_image.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; diff --git a/lib/ui/viewer/file/device_folders_list_of_file_widget.dart b/lib/ui/viewer/file/device_folders_list_of_file_widget.dart index 1c42624f4..d88eaa472 100644 --- a/lib/ui/viewer/file/device_folders_list_of_file_widget.dart +++ b/lib/ui/viewer/file/device_folders_list_of_file_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/ui/common/loading_widget.dart'; diff --git a/lib/ui/viewer/file/exif_info_dialog.dart b/lib/ui/viewer/file/exif_info_dialog.dart index 52b6cc3e7..0df52d322 100644 --- a/lib/ui/viewer/file/exif_info_dialog.dart +++ b/lib/ui/viewer/file/exif_info_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:ui'; import 'package:flutter/material.dart'; diff --git a/lib/ui/viewer/file/fading_app_bar.dart b/lib/ui/viewer/file/fading_app_bar.dart index b068ba3a4..1ddfd2ce1 100644 --- a/lib/ui/viewer/file/fading_app_bar.dart +++ b/lib/ui/viewer/file/fading_app_bar.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'dart:io' as io; diff --git a/lib/ui/viewer/file/fading_bottom_bar.dart b/lib/ui/viewer/file/fading_bottom_bar.dart index f1796ec92..607714cd7 100644 --- a/lib/ui/viewer/file/fading_bottom_bar.dart +++ b/lib/ui/viewer/file/fading_bottom_bar.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/cupertino.dart'; diff --git a/lib/ui/viewer/file/file_icons_widget.dart b/lib/ui/viewer/file/file_icons_widget.dart index 27e494bbe..307cfc628 100644 --- a/lib/ui/viewer/file/file_icons_widget.dart +++ b/lib/ui/viewer/file/file_icons_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/trash_file.dart'; diff --git a/lib/ui/viewer/file/file_info_collection_widget.dart b/lib/ui/viewer/file/file_info_collection_widget.dart index 492c8cd54..1ceb068f2 100644 --- a/lib/ui/viewer/file/file_info_collection_widget.dart +++ b/lib/ui/viewer/file/file_info_collection_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/viewer/file/file_info_widget.dart b/lib/ui/viewer/file/file_info_widget.dart index 99ede2da8..db97e3fad 100644 --- a/lib/ui/viewer/file/file_info_widget.dart +++ b/lib/ui/viewer/file/file_info_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import "package:exif/exif.dart"; import "package:flutter/cupertino.dart"; import "package:flutter/material.dart"; diff --git a/lib/ui/viewer/file/file_widget.dart b/lib/ui/viewer/file/file_widget.dart index ef1f67f97..555d700db 100644 --- a/lib/ui/viewer/file/file_widget.dart +++ b/lib/ui/viewer/file/file_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/models/file.dart'; diff --git a/lib/ui/viewer/file/raw_exif_button.dart b/lib/ui/viewer/file/raw_exif_button.dart index 5d42ee3a8..a34414c46 100644 --- a/lib/ui/viewer/file/raw_exif_button.dart +++ b/lib/ui/viewer/file/raw_exif_button.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:exif/exif.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; diff --git a/lib/ui/viewer/file/thumbnail_widget.dart b/lib/ui/viewer/file/thumbnail_widget.dart index a8e41ca8e..cecdf7541 100644 --- a/lib/ui/viewer/file/thumbnail_widget.dart +++ b/lib/ui/viewer/file/thumbnail_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/cache/thumbnail_cache.dart'; diff --git a/lib/ui/viewer/file/video_controls.dart b/lib/ui/viewer/file/video_controls.dart index 85c25bf78..15af669f1 100644 --- a/lib/ui/viewer/file/video_controls.dart +++ b/lib/ui/viewer/file/video_controls.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:chewie/chewie.dart'; diff --git a/lib/ui/viewer/file/video_widget.dart b/lib/ui/viewer/file/video_widget.dart index 5e8ac498f..162cc5caf 100644 --- a/lib/ui/viewer/file/video_widget.dart +++ b/lib/ui/viewer/file/video_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io' as io; import 'package:chewie/chewie.dart'; diff --git a/lib/ui/viewer/file/zoomable_image.dart b/lib/ui/viewer/file/zoomable_image.dart index d55971a77..b311d8a4f 100644 --- a/lib/ui/viewer/file/zoomable_image.dart +++ b/lib/ui/viewer/file/zoomable_image.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/ui/viewer/file/zoomable_live_image.dart b/lib/ui/viewer/file/zoomable_live_image.dart index d895c8d62..673be3ae7 100644 --- a/lib/ui/viewer/file/zoomable_live_image.dart +++ b/lib/ui/viewer/file/zoomable_live_image.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io' as io; import 'package:chewie/chewie.dart'; diff --git a/lib/ui/viewer/gallery/archive_page.dart b/lib/ui/viewer/gallery/archive_page.dart index 42c7f219c..8d32828a7 100644 --- a/lib/ui/viewer/gallery/archive_page.dart +++ b/lib/ui/viewer/gallery/archive_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/configuration.dart'; import 'package:photos/core/event_bus.dart'; diff --git a/lib/ui/viewer/gallery/collection_page.dart b/lib/ui/viewer/gallery/collection_page.dart index e9a6f1fdd..5fa50c65f 100644 --- a/lib/ui/viewer/gallery/collection_page.dart +++ b/lib/ui/viewer/gallery/collection_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/db/files_db.dart'; diff --git a/lib/ui/viewer/gallery/device_all_page.dart b/lib/ui/viewer/gallery/device_all_page.dart index a1e2002ea..6d0f363f6 100644 --- a/lib/ui/viewer/gallery/device_all_page.dart +++ b/lib/ui/viewer/gallery/device_all_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/db/files_db.dart'; diff --git a/lib/ui/viewer/gallery/device_folder_page.dart b/lib/ui/viewer/gallery/device_folder_page.dart index 365edfe8c..024506003 100644 --- a/lib/ui/viewer/gallery/device_folder_page.dart +++ b/lib/ui/viewer/gallery/device_folder_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/configuration.dart'; import 'package:photos/core/event_bus.dart'; diff --git a/lib/ui/viewer/gallery/empte_state.dart b/lib/ui/viewer/gallery/empte_state.dart index fa423f411..d77025594 100644 --- a/lib/ui/viewer/gallery/empte_state.dart +++ b/lib/ui/viewer/gallery/empte_state.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/viewer/gallery/gallery.dart b/lib/ui/viewer/gallery/gallery.dart index 035b0a40d..c085e5421 100644 --- a/lib/ui/viewer/gallery/gallery.dart +++ b/lib/ui/viewer/gallery/gallery.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/lib/ui/viewer/gallery/gallery_app_bar_widget.dart index c2f39e14d..ad3007aaf 100644 --- a/lib/ui/viewer/gallery/gallery_app_bar_widget.dart +++ b/lib/ui/viewer/gallery/gallery_app_bar_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/ui/viewer/gallery/gallery_footer_widget.dart b/lib/ui/viewer/gallery/gallery_footer_widget.dart index 7c26497ed..d2d313cbe 100644 --- a/lib/ui/viewer/gallery/gallery_footer_widget.dart +++ b/lib/ui/viewer/gallery/gallery_footer_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photo_manager/photo_manager.dart'; import 'package:photos/services/local_sync_service.dart'; diff --git a/lib/ui/viewer/gallery/gallery_overlay_widget.dart b/lib/ui/viewer/gallery/gallery_overlay_widget.dart index 4abeb0d53..7f211d7e9 100644 --- a/lib/ui/viewer/gallery/gallery_overlay_widget.dart +++ b/lib/ui/viewer/gallery/gallery_overlay_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io'; import 'dart:ui'; diff --git a/lib/ui/viewer/gallery/trash_page.dart b/lib/ui/viewer/gallery/trash_page.dart index ba5cf5c63..294f369fc 100644 --- a/lib/ui/viewer/gallery/trash_page.dart +++ b/lib/ui/viewer/gallery/trash_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:ui'; import 'package:flutter/material.dart'; diff --git a/lib/ui/viewer/search/collections/files_from_holiday_page.dart b/lib/ui/viewer/search/collections/files_from_holiday_page.dart index 134ced761..d3f95837c 100644 --- a/lib/ui/viewer/search/collections/files_from_holiday_page.dart +++ b/lib/ui/viewer/search/collections/files_from_holiday_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/events/files_updated_event.dart'; diff --git a/lib/ui/viewer/search/collections/files_from_month_page.dart b/lib/ui/viewer/search/collections/files_from_month_page.dart index a8107e3a0..d55e3de71 100644 --- a/lib/ui/viewer/search/collections/files_from_month_page.dart +++ b/lib/ui/viewer/search/collections/files_from_month_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/events/files_updated_event.dart'; diff --git a/lib/ui/viewer/search/collections/files_from_year_page.dart b/lib/ui/viewer/search/collections/files_from_year_page.dart index 38e3655b7..4faccf57b 100644 --- a/lib/ui/viewer/search/collections/files_from_year_page.dart +++ b/lib/ui/viewer/search/collections/files_from_year_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/events/files_updated_event.dart'; diff --git a/lib/ui/viewer/search/collections/files_in_location_page.dart b/lib/ui/viewer/search/collections/files_in_location_page.dart index eccfa6b1e..f39391bc1 100644 --- a/lib/ui/viewer/search/collections/files_in_location_page.dart +++ b/lib/ui/viewer/search/collections/files_in_location_page.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/events/files_updated_event.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/collection_result_widget.dart b/lib/ui/viewer/search/search_result_widgets/collection_result_widget.dart index 3abeb9dd8..b135bc183 100644 --- a/lib/ui/viewer/search/search_result_widgets/collection_result_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/collection_result_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/db/files_db.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/file_result_widget.dart b/lib/ui/viewer/search/search_result_widgets/file_result_widget.dart index 967ade41c..bf03d0a4c 100644 --- a/lib/ui/viewer/search/search_result_widgets/file_result_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/file_result_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/file.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/holiday_result_widget.dart b/lib/ui/viewer/search/search_result_widgets/holiday_result_widget.dart index 321b46fe5..8347a63f9 100644 --- a/lib/ui/viewer/search/search_result_widgets/holiday_result_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/holiday_result_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/search/holiday_search_result.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/location_result_widget.dart b/lib/ui/viewer/search/search_result_widgets/location_result_widget.dart index b68d8f8c2..4ee7d5e7b 100644 --- a/lib/ui/viewer/search/search_result_widgets/location_result_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/location_result_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/search/location_search_result.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/month_result_widget.dart b/lib/ui/viewer/search/search_result_widgets/month_result_widget.dart index 9e1bfd03f..07ca2f253 100644 --- a/lib/ui/viewer/search/search_result_widgets/month_result_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/month_result_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/search/month_search_result.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/no_result_widget.dart b/lib/ui/viewer/search/search_result_widgets/no_result_widget.dart index 3aaca45fc..2b8e57e8e 100644 --- a/lib/ui/viewer/search/search_result_widgets/no_result_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/no_result_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/search_result_thumbnail_widget.dart b/lib/ui/viewer/search/search_result_widgets/search_result_thumbnail_widget.dart index bbbc6cf1a..1dccc7e86 100644 --- a/lib/ui/viewer/search/search_result_widgets/search_result_thumbnail_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/search_result_thumbnail_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/widgets.dart'; import 'package:photos/models/file.dart'; import 'package:photos/ui/viewer/file/thumbnail_widget.dart'; diff --git a/lib/ui/viewer/search/search_result_widgets/year_result_widget.dart b/lib/ui/viewer/search/search_result_widgets/year_result_widget.dart index 142875520..687b77519 100644 --- a/lib/ui/viewer/search/search_result_widgets/year_result_widget.dart +++ b/lib/ui/viewer/search/search_result_widgets/year_result_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; import 'package:photos/models/search/year_search_result.dart'; diff --git a/lib/ui/viewer/search/search_suffix_icon_widget.dart b/lib/ui/viewer/search/search_suffix_icon_widget.dart index d11a8dbef..bbfc14b1f 100644 --- a/lib/ui/viewer/search/search_suffix_icon_widget.dart +++ b/lib/ui/viewer/search/search_suffix_icon_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/viewer/search/search_suggestions.dart b/lib/ui/viewer/search/search_suggestions.dart index 00803ea12..08d1961a9 100644 --- a/lib/ui/viewer/search/search_suggestions.dart +++ b/lib/ui/viewer/search/search_suggestions.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:photos/ente_theme_data.dart'; diff --git a/lib/ui/viewer/search/search_widget.dart b/lib/ui/viewer/search/search_widget.dart index 76d22f4cb..d360b3562 100644 --- a/lib/ui/viewer/search/search_widget.dart +++ b/lib/ui/viewer/search/search_widget.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/utils/auth_util.dart b/lib/utils/auth_util.dart index 808a88c09..99d392f85 100644 --- a/lib/utils/auth_util.dart +++ b/lib/utils/auth_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:local_auth/auth_strings.dart'; import 'package:local_auth/local_auth.dart'; import 'package:logging/logging.dart'; diff --git a/lib/utils/crypto_util.dart b/lib/utils/crypto_util.dart index 044c36a1d..90f2b3209 100644 --- a/lib/utils/crypto_util.dart +++ b/lib/utils/crypto_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io' as io; import 'dart:typed_data'; diff --git a/lib/utils/data_util.dart b/lib/utils/data_util.dart index aaf8723f1..aa202e438 100644 --- a/lib/utils/data_util.dart +++ b/lib/utils/data_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math'; double convertBytesToGBs(final int bytes, {int precision = 2}) { diff --git a/lib/utils/date_time_util.dart b/lib/utils/date_time_util.dart index 49b1d4bb3..6da8645ba 100644 --- a/lib/utils/date_time_util.dart +++ b/lib/utils/date_time_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; diff --git a/lib/utils/debouncer.dart b/lib/utils/debouncer.dart index b62c941b7..8b1eafe85 100644 --- a/lib/utils/debouncer.dart +++ b/lib/utils/debouncer.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/utils/delete_file_util.dart b/lib/utils/delete_file_util.dart index 0070a9195..3e186af9b 100644 --- a/lib/utils/delete_file_util.dart +++ b/lib/utils/delete_file_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io' as io; import 'dart:io'; diff --git a/lib/utils/dialog_util.dart b/lib/utils/dialog_util.dart index e51c59410..e734e4ff5 100644 --- a/lib/utils/dialog_util.dart +++ b/lib/utils/dialog_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math'; import 'package:confetti/confetti.dart'; diff --git a/lib/utils/diff_fetcher.dart b/lib/utils/diff_fetcher.dart index bb99989e6..ba4449cfd 100644 --- a/lib/utils/diff_fetcher.dart +++ b/lib/utils/diff_fetcher.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:math'; diff --git a/lib/utils/email_util.dart b/lib/utils/email_util.dart index 44e89add1..c617ea3b9 100644 --- a/lib/utils/email_util.dart +++ b/lib/utils/email_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:archive/archive_io.dart'; diff --git a/lib/utils/exif_util.dart b/lib/utils/exif_util.dart index ff0dd236d..3c1914088 100644 --- a/lib/utils/exif_util.dart +++ b/lib/utils/exif_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io' as io; import 'package:exif/exif.dart'; diff --git a/lib/utils/file_download_util.dart b/lib/utils/file_download_util.dart index 3e13e51e9..0affb1709 100644 --- a/lib/utils/file_download_util.dart +++ b/lib/utils/file_download_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io' as io; import 'dart:typed_data'; diff --git a/lib/utils/file_sync_util.dart b/lib/utils/file_sync_util.dart index 413ccc8f6..65ccbcf90 100644 --- a/lib/utils/file_sync_util.dart +++ b/lib/utils/file_sync_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:math'; import 'package:computer/computer.dart'; diff --git a/lib/utils/file_uploader.dart b/lib/utils/file_uploader.dart index d89753785..15279eb5b 100644 --- a/lib/utils/file_uploader.dart +++ b/lib/utils/file_uploader.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:collection'; import 'dart:convert'; diff --git a/lib/utils/file_uploader_util.dart b/lib/utils/file_uploader_util.dart index fab5f0fc5..0d3823ac4 100644 --- a/lib/utils/file_uploader_util.dart +++ b/lib/utils/file_uploader_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io' as io; import 'dart:typed_data'; diff --git a/lib/utils/file_util.dart b/lib/utils/file_util.dart index 9a651e722..2072d4961 100644 --- a/lib/utils/file_util.dart +++ b/lib/utils/file_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io' as io; import 'dart:io'; diff --git a/lib/utils/hex.dart b/lib/utils/hex.dart index efe0b8c6a..887dafa54 100644 --- a/lib/utils/hex.dart +++ b/lib/utils/hex.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import "dart:convert"; import "dart:typed_data"; diff --git a/lib/utils/local_settings.dart b/lib/utils/local_settings.dart index 267d6413a..d121ebf39 100644 --- a/lib/utils/local_settings.dart +++ b/lib/utils/local_settings.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:shared_preferences/shared_preferences.dart'; enum AlbumSortKey { diff --git a/lib/utils/magic_util.dart b/lib/utils/magic_util.dart index 40602fe5f..aaf57f56e 100644 --- a/lib/utils/magic_util.dart +++ b/lib/utils/magic_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:path/path.dart'; diff --git a/lib/utils/navigation_util.dart b/lib/utils/navigation_util.dart index 76e7fce7c..e6e92d4ea 100644 --- a/lib/utils/navigation_util.dart +++ b/lib/utils/navigation_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/utils/share_util.dart b/lib/utils/share_util.dart index 9346de424..48a5e6878 100644 --- a/lib/utils/share_util.dart +++ b/lib/utils/share_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:io' as dartio; diff --git a/lib/utils/thumbnail_util.dart b/lib/utils/thumbnail_util.dart index 82f7a4293..8f78c2179 100644 --- a/lib/utils/thumbnail_util.dart +++ b/lib/utils/thumbnail_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'dart:collection'; import 'dart:io' as io; diff --git a/lib/utils/toast_util.dart b/lib/utils/toast_util.dart index 8d58c879b..f68f52bc4 100644 --- a/lib/utils/toast_util.dart +++ b/lib/utils/toast_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/utils/trash_diff_fetcher.dart b/lib/utils/trash_diff_fetcher.dart index a5876d333..c1225f2fe 100644 --- a/lib/utils/trash_diff_fetcher.dart +++ b/lib/utils/trash_diff_fetcher.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:math'; diff --git a/lib/utils/validator_util.dart b/lib/utils/validator_util.dart index 7dbb80718..0e5b6952d 100644 --- a/lib/utils/validator_util.dart +++ b/lib/utils/validator_util.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:convert'; import 'dart:typed_data'; diff --git a/pubspec.yaml b/pubspec.yaml index 035e9b120..78f06ca2f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,7 +14,7 @@ description: ente photos application version: 0.6.30+360 environment: - sdk: ">=2.10.0 <3.0.0" + sdk: '>=2.12.0 <3.0.0' dependencies: adaptive_theme: ^3.1.0 From 1c69673e07c0e0a6eaeb864314df4ddc68148035 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Wed, 7 Sep 2022 16:05:50 +0530 Subject: [PATCH 2/4] remove language version comment from files which are already null safe --- lib/events/account_configured_event.dart | 2 +- lib/events/backup_folders_updated_event.dart | 2 +- lib/events/event.dart | 2 +- lib/events/force_reload_home_gallery_event.dart | 2 +- lib/events/force_reload_trash_page_event.dart | 2 +- lib/events/local_photos_updated_event.dart | 2 +- lib/events/permission_granted_event.dart | 2 +- lib/events/signed_in_event.dart | 2 +- lib/events/subscription_purchased_event.dart | 2 +- lib/events/trigger_logout_event.dart | 2 +- lib/events/two_factor_status_change_event.dart | 2 +- lib/events/user_details_changed_event.dart | 2 +- lib/events/user_logged_out_event.dart | 2 +- lib/l10n/l10n.dart | 2 +- lib/models/gallery_type.dart | 2 +- lib/models/search/search_results.dart | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/events/account_configured_event.dart b/lib/events/account_configured_event.dart index eafbd9498..3ff61199d 100644 --- a/lib/events/account_configured_event.dart +++ b/lib/events/account_configured_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/backup_folders_updated_event.dart b/lib/events/backup_folders_updated_event.dart index fdcb69537..4f30f7b25 100644 --- a/lib/events/backup_folders_updated_event.dart +++ b/lib/events/backup_folders_updated_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/event.dart b/lib/events/event.dart index 95c3c9ecb..bd2189293 100644 --- a/lib/events/event.dart +++ b/lib/events/event.dart @@ -1,3 +1,3 @@ -// @dart=2.9 + class Event {} diff --git a/lib/events/force_reload_home_gallery_event.dart b/lib/events/force_reload_home_gallery_event.dart index a4d623872..e348f6665 100644 --- a/lib/events/force_reload_home_gallery_event.dart +++ b/lib/events/force_reload_home_gallery_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/force_reload_trash_page_event.dart b/lib/events/force_reload_trash_page_event.dart index ef38e18bc..3ca9a601f 100644 --- a/lib/events/force_reload_trash_page_event.dart +++ b/lib/events/force_reload_trash_page_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/local_photos_updated_event.dart b/lib/events/local_photos_updated_event.dart index da44f19e1..59e345a2c 100644 --- a/lib/events/local_photos_updated_event.dart +++ b/lib/events/local_photos_updated_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/files_updated_event.dart'; diff --git a/lib/events/permission_granted_event.dart b/lib/events/permission_granted_event.dart index 5f5f9ddf5..e8400e7ad 100644 --- a/lib/events/permission_granted_event.dart +++ b/lib/events/permission_granted_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/signed_in_event.dart b/lib/events/signed_in_event.dart index 9ca09ba69..b3ab2cbb3 100644 --- a/lib/events/signed_in_event.dart +++ b/lib/events/signed_in_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/subscription_purchased_event.dart b/lib/events/subscription_purchased_event.dart index a278d7b11..823c62e6c 100644 --- a/lib/events/subscription_purchased_event.dart +++ b/lib/events/subscription_purchased_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/trigger_logout_event.dart b/lib/events/trigger_logout_event.dart index 0fcfc80f4..e5a88589a 100644 --- a/lib/events/trigger_logout_event.dart +++ b/lib/events/trigger_logout_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/two_factor_status_change_event.dart b/lib/events/two_factor_status_change_event.dart index 6bd45ac78..665d35900 100644 --- a/lib/events/two_factor_status_change_event.dart +++ b/lib/events/two_factor_status_change_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/user_details_changed_event.dart b/lib/events/user_details_changed_event.dart index f9d4bf3bf..82182aa9a 100644 --- a/lib/events/user_details_changed_event.dart +++ b/lib/events/user_details_changed_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/events/user_logged_out_event.dart b/lib/events/user_logged_out_event.dart index e2b8ee374..1703e97b9 100644 --- a/lib/events/user_logged_out_event.dart +++ b/lib/events/user_logged_out_event.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:photos/events/event.dart'; diff --git a/lib/l10n/l10n.dart b/lib/l10n/l10n.dart index bb46c88ed..e90289d6c 100644 --- a/lib/l10n/l10n.dart +++ b/lib/l10n/l10n.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'dart:ui'; diff --git a/lib/models/gallery_type.dart b/lib/models/gallery_type.dart index a99a1a9f1..0d5dbfbfc 100644 --- a/lib/models/gallery_type.dart +++ b/lib/models/gallery_type.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + enum GalleryType { homepage, diff --git a/lib/models/search/search_results.dart b/lib/models/search/search_results.dart index 870f32a61..83b7f0a40 100644 --- a/lib/models/search/search_results.dart +++ b/lib/models/search/search_results.dart @@ -1,3 +1,3 @@ -// @dart=2.9 + class SearchResult {} From 9529f852eac49fcfbdc8eb04f8eaebcc5f11e6e8 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Wed, 7 Sep 2022 16:27:26 +0530 Subject: [PATCH 3/4] enabled null safety for files which are already null safe --- lib/core/cache/thumbnail_cache_manager.dart | 2 +- lib/core/cache/video_cache_manager.dart | 2 +- lib/core/constants.dart | 2 +- lib/core/event_bus.dart | 2 +- lib/models/update_share_url_request.dart | 3 --- 5 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 lib/models/update_share_url_request.dart diff --git a/lib/core/cache/thumbnail_cache_manager.dart b/lib/core/cache/thumbnail_cache_manager.dart index 6f04a5cea..e80e64458 100644 --- a/lib/core/cache/thumbnail_cache_manager.dart +++ b/lib/core/cache/thumbnail_cache_manager.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:flutter_cache_manager/flutter_cache_manager.dart'; diff --git a/lib/core/cache/video_cache_manager.dart b/lib/core/cache/video_cache_manager.dart index 9a5fcfdd6..601682eda 100644 --- a/lib/core/cache/video_cache_manager.dart +++ b/lib/core/cache/video_cache_manager.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:flutter_cache_manager/flutter_cache_manager.dart'; diff --git a/lib/core/constants.dart b/lib/core/constants.dart index 70728e577..c83e0ca41 100644 --- a/lib/core/constants.dart +++ b/lib/core/constants.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + const int kThumbnailSmallSize = 256; const int kThumbnailQuality = 50; diff --git a/lib/core/event_bus.dart b/lib/core/event_bus.dart index 0f984f410..a112b0d0c 100644 --- a/lib/core/event_bus.dart +++ b/lib/core/event_bus.dart @@ -1,4 +1,4 @@ -// @dart=2.9 + import 'package:event_bus/event_bus.dart'; diff --git a/lib/models/update_share_url_request.dart b/lib/models/update_share_url_request.dart deleted file mode 100644 index 5a2075093..000000000 --- a/lib/models/update_share_url_request.dart +++ /dev/null @@ -1,3 +0,0 @@ -// @dart=2.9 - - From 7191d313ae33d93f78ee9350383cc1f7a472e5b0 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Wed, 7 Sep 2022 16:38:32 +0530 Subject: [PATCH 4/4] minor fix --- lib/core/constants.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/constants.dart b/lib/core/constants.dart index c83e0ca41..e028840a9 100644 --- a/lib/core/constants.dart +++ b/lib/core/constants.dart @@ -1,4 +1,4 @@ - +// @dart = 2.7 const int kThumbnailSmallSize = 256; const int kThumbnailQuality = 50;