Browse Source

Merge pull request #787 from ente-io/lint_cleanup

Chore: Lint fixes and formatting changes
Neeraj Gupta 2 years ago
parent
commit
f8d3b9a919
70 changed files with 54 additions and 169 deletions
  1. 0 2
      lib/app.dart
  2. 1 11
      lib/core/configuration.dart
  3. 0 2
      lib/core/event_bus.dart
  4. 0 2
      lib/events/account_configured_event.dart
  5. 0 2
      lib/events/backup_folders_updated_event.dart
  6. 0 2
      lib/events/force_reload_trash_page_event.dart
  7. 0 2
      lib/events/permission_granted_event.dart
  8. 0 2
      lib/events/signed_in_event.dart
  9. 0 2
      lib/events/subscription_purchased_event.dart
  10. 1 0
      lib/events/sync_status_update_event.dart
  11. 0 2
      lib/events/trigger_logout_event.dart
  12. 0 2
      lib/events/user_details_changed_event.dart
  13. 0 2
      lib/events/user_logged_out_event.dart
  14. 0 2
      lib/main.dart
  15. 4 3
      lib/models/user_details.dart
  16. 4 4
      lib/services/update_service.dart
  17. 1 1
      lib/states/user_details_state.dart
  18. 0 2
      lib/ui/account/login_page.dart
  19. 0 2
      lib/ui/account/recovery_key_page.dart
  20. 0 2
      lib/ui/account/recovery_page.dart
  21. 0 2
      lib/ui/collections/device_folders_grid_view_widget.dart
  22. 0 2
      lib/ui/collections/hidden_collections_button_widget.dart
  23. 0 2
      lib/ui/collections/remote_collections_grid_view_widget.dart
  24. 0 2
      lib/ui/common/bottom_shadow.dart
  25. 0 2
      lib/ui/common/dialogs.dart
  26. 4 5
      lib/ui/common/divider_with_padding.dart
  27. 2 3
      lib/ui/common/dynamic_fab.dart
  28. 0 2
      lib/ui/common/gradient_button.dart
  29. 0 2
      lib/ui/common/linear_progress_dialog.dart
  30. 0 2
      lib/ui/common/rename_dialog.dart
  31. 0 2
      lib/ui/common/web_page.dart
  32. 0 2
      lib/ui/home/header_error_widget.dart
  33. 0 2
      lib/ui/home/memories_widget.dart
  34. 0 2
      lib/ui/huge_listview/huge_listview.dart
  35. 2 3
      lib/ui/huge_listview/lazy_loading_gallery.dart
  36. 2 3
      lib/ui/huge_listview/scroll_bar_thumb.dart
  37. 0 2
      lib/ui/lifecycle_event_handler.dart
  38. 4 3
      lib/ui/loading_photos_widget.dart
  39. 6 7
      lib/ui/nav_bar.dart
  40. 1 1
      lib/ui/notification/update/change_log_page.dart
  41. 0 2
      lib/ui/payment/subscription_common_widgets.dart
  42. 0 2
      lib/ui/payment/subscription_plan_widget.dart
  43. 0 2
      lib/ui/settings/app_update_dialog.dart
  44. 0 1
      lib/ui/settings/storage_card_widget.dart
  45. 0 2
      lib/ui/settings/theme_switch_widget.dart
  46. 0 2
      lib/ui/settings_page.dart
  47. 4 5
      lib/ui/shared_collections_gallery.dart
  48. 4 6
      lib/ui/sharing/manage_links_widget.dart
  49. 0 2
      lib/ui/tools/debug/log_file_viewer.dart
  50. 0 2
      lib/ui/tools/editor/filtered_image.dart
  51. 0 2
      lib/ui/tools/free_space_page.dart
  52. 0 2
      lib/ui/tools/lock_screen.dart
  53. 0 2
      lib/ui/viewer/file/exif_info_dialog.dart
  54. 0 2
      lib/ui/viewer/file/fading_bottom_bar.dart
  55. 0 2
      lib/ui/viewer/file/file_info_collection_widget.dart
  56. 0 2
      lib/ui/viewer/file/file_widget.dart
  57. 0 2
      lib/ui/viewer/file/raw_exif_list_tile_widget.dart
  58. 2 3
      lib/ui/viewer/file/zoomable_image.dart
  59. 0 2
      lib/ui/viewer/file/zoomable_live_image.dart
  60. 0 2
      lib/ui/viewer/gallery/archive_page.dart
  61. 6 3
      lib/ui/viewer/gallery/device_folder_page.dart
  62. 4 3
      lib/ui/viewer/gallery/gallery_overlay_widget.dart
  63. 0 2
      lib/ui/viewer/gallery/hidden_page.dart
  64. 2 3
      lib/ui/viewer/gallery/trash_page.dart
  65. 0 2
      lib/ui/viewer/search/result/file_result_widget.dart
  66. 0 2
      lib/ui/viewer/search/result/search_result_page.dart
  67. 0 2
      lib/ui/viewer/search/search_suffix_icon_widget.dart
  68. 0 2
      lib/ui/viewer/search/search_suggestions.dart
  69. 0 2
      lib/ui/viewer/search/search_widget.dart
  70. 0 1
      lib/utils/file_uploader_util.dart

+ 0 - 2
lib/app.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:io';
 
 import 'package:adaptive_theme/adaptive_theme.dart';

+ 1 - 11
lib/core/configuration.dart

@@ -8,19 +8,14 @@ import 'package:flutter_sodium/flutter_sodium.dart';
 import 'package:logging/logging.dart';
 import 'package:path_provider/path_provider.dart';
 import 'package:photos/core/constants.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/core/error-reporting/super_logging.dart';
 import 'package:photos/core/errors.dart';
 import 'package:photos/core/event_bus.dart';
 import 'package:photos/db/collections_db.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/db/files_db.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/db/ignored_files_db.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/db/memories_db.dart';
 import 'package:photos/db/public_keys_db.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/db/trash_db.dart';
 import 'package:photos/db/upload_locks_db.dart';
 import 'package:photos/events/signed_in_event.dart';
@@ -28,17 +23,11 @@ import 'package:photos/events/user_logged_out_event.dart';
 import 'package:photos/models/key_attributes.dart';
 import 'package:photos/models/key_gen_result.dart';
 import 'package:photos/models/private_key_attributes.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/services/billing_service.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/services/collections_service.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/services/favorites_service.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/services/memories_service.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/services/search_service.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/services/sync_service.dart';
 import 'package:photos/utils/crypto_util.dart';
 import 'package:photos/utils/validator_util.dart';
@@ -91,6 +80,7 @@ class Configuration {
   late FlutterSecureStorage _secureStorage;
   late String _tempDirectory;
   late String _thumbnailCacheDirectory;
+
   // 6th July 22: Remove this after 3 months. Hopefully, active users
   // will migrate to newer version of the app, where shared media is stored
   // on appSupport directory which OS won't clean up automatically

+ 0 - 2
lib/core/event_bus.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:event_bus/event_bus.dart';
 
 class Bus {

+ 0 - 2
lib/events/account_configured_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class AccountConfiguredEvent extends Event {}

+ 0 - 2
lib/events/backup_folders_updated_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class BackupFoldersUpdatedEvent extends Event {}

+ 0 - 2
lib/events/force_reload_trash_page_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class ForceReloadTrashPageEvent extends Event {

+ 0 - 2
lib/events/permission_granted_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class PermissionGrantedEvent extends Event {}

+ 0 - 2
lib/events/signed_in_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class SignedInEvent extends Event {}

+ 0 - 2
lib/events/subscription_purchased_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class SubscriptionPurchasedEvent extends Event {}

+ 1 - 0
lib/events/sync_status_update_event.dart

@@ -5,6 +5,7 @@ class SyncStatusUpdate extends Event {
   final int? completed;
   final int? total;
   final bool wasStopped;
+  @override
   final String reason;
   final Error? error;
   late int timestamp;

+ 0 - 2
lib/events/trigger_logout_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class TriggerLogoutEvent extends Event {}

+ 0 - 2
lib/events/user_details_changed_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class UserDetailsChangedEvent extends Event {}

+ 0 - 2
lib/events/user_logged_out_event.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:photos/events/event.dart';
 
 class UserLoggedOutEvent extends Event {}

+ 0 - 2
lib/main.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:async';
 import 'dart:io';
 

+ 4 - 3
lib/models/user_details.dart

@@ -103,7 +103,6 @@ class FamilyMember {
     );
   }
 
-
   Map<String, dynamic> toMap() {
     return {
       'email': email,
@@ -115,7 +114,8 @@ class FamilyMember {
 
   String toJson() => json.encode(toMap());
 
-  factory FamilyMember.fromJson(String source) => FamilyMember.fromMap(json.decode(source));
+  factory FamilyMember.fromJson(String source) =>
+      FamilyMember.fromMap(json.decode(source));
 }
 
 class FamilyData {
@@ -158,7 +158,8 @@ class FamilyData {
 
   String toJson() => json.encode(toMap());
 
-  factory FamilyData.fromJson(String source) => FamilyData.fromMap(json.decode(source));
+  factory FamilyData.fromJson(String source) =>
+      FamilyData.fromMap(json.decode(source));
 }
 
 class FilesCount {

+ 4 - 4
lib/services/update_service.dart

@@ -155,10 +155,10 @@ class UpdateService {
       // Fall back if we fail to open play-store market app on android
       if (Platform.isAndroid && url.startsWith("market://")) {
         launchUrlString(
-                "https://play.google.com/store/apps/details?id=io"
-                ".ente.photos",
-                mode: LaunchMode.externalApplication)
-            .ignore();
+          "https://play.google.com/store/apps/details?id=io"
+          ".ente.photos",
+          mode: LaunchMode.externalApplication,
+        ).ignore();
       }
     }
   }

+ 1 - 1
lib/states/user_details_state.dart

@@ -4,11 +4,11 @@ import 'package:flutter/material.dart';
 import 'package:photos/core/event_bus.dart';
 import 'package:photos/events/opened_settings_event.dart';
 import 'package:photos/models/user_details.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/services/user_service.dart';
 
 class UserDetailsStateWidget extends StatefulWidget {
   final Widget child;
+
   const UserDetailsStateWidget({
     required this.child,
     Key? key,

+ 0 - 2
lib/ui/account/login_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:email_validator/email_validator.dart';
 import 'package:flutter/gestures.dart';
 import 'package:flutter/material.dart';

+ 0 - 2
lib/ui/account/recovery_key_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:io' as io;
 
 import 'package:bip39/bip39.dart' as bip39;

+ 0 - 2
lib/ui/account/recovery_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:ui';
 
 import 'package:flutter/material.dart';

+ 0 - 2
lib/ui/collections/device_folders_grid_view_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:async';
 
 import 'package:flutter/material.dart';

+ 0 - 2
lib/ui/collections/hidden_collections_button_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/services/local_authentication_service.dart';
 import 'package:photos/ui/viewer/gallery/hidden_page.dart';

+ 0 - 2
lib/ui/collections/remote_collections_grid_view_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:math';
 
 import 'package:flutter/material.dart';

+ 0 - 2
lib/ui/common/bottom_shadow.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 
 class BottomShadowWidget extends StatelessWidget {

+ 0 - 2
lib/ui/common/dialogs.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
 

+ 4 - 5
lib/ui/common/DividerWithPadding.dart → lib/ui/common/divider_with_padding.dart

@@ -1,16 +1,15 @@
-
-
 import 'package:flutter/material.dart';
 
 class DividerWithPadding extends StatelessWidget {
-  final double left, top, right, bottom, thinckness;
+  final double left, top, right, bottom, thickness;
+
   const DividerWithPadding({
     Key? key,
     this.left = 0,
     this.top = 0,
     this.right = 0,
     this.bottom = 0,
-    this.thinckness = 0.5,
+    this.thickness = 0.5,
   }) : super(key: key);
 
   @override
@@ -18,7 +17,7 @@ class DividerWithPadding extends StatelessWidget {
     return Padding(
       padding: EdgeInsets.fromLTRB(left, top, right, bottom),
       child: Divider(
-        thickness: thinckness,
+        thickness: thickness,
       ),
     );
   }

+ 2 - 3
lib/ui/common/dynamic_fab.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:math' as math;
 
 import 'package:flutter/material.dart';
@@ -65,7 +63,8 @@ class DynamicFAB extends StatelessWidget {
         height: 56,
         padding: const EdgeInsets.symmetric(horizontal: 20),
         child: OutlinedButton(
-          onPressed: isFormValid! ? onPressedFunction as void Function()? : null,
+          onPressed:
+              isFormValid! ? onPressedFunction as void Function()? : null,
           child: Text(buttonText!),
         ),
       );

+ 0 - 2
lib/ui/common/gradient_button.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/theme/ente_theme.dart';
 

+ 0 - 2
lib/ui/common/linear_progress_dialog.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
 

+ 0 - 2
lib/ui/common/rename_dialog.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/utils/dialog_util.dart';
 

+ 0 - 2
lib/ui/common/web_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:flutter_inappwebview/flutter_inappwebview.dart';
 import 'package:photos/ui/common/loading_widget.dart';

+ 0 - 2
lib/ui/home/header_error_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/core/errors.dart';
 import 'package:photos/ente_theme_data.dart';

+ 0 - 2
lib/ui/home/memories_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
 import 'package:photos/models/memory.dart';

+ 0 - 2
lib/ui/huge_listview/huge_listview.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:math' show max;
 
 import 'package:flutter/material.dart';

+ 2 - 3
lib/ui/huge_listview/lazy_loading_gallery.dart

@@ -511,11 +511,10 @@ class _LazyLoadingGridViewState extends State<LazyLoadingGridView> {
   void _toggleSelectAllFromDayListener() {
     if (widget.selectedFiles.files.containsAll(widget.filesInDay.toSet())) {
       setState(() {
-        widget.selectedFiles
-            .unSelectAll(widget.filesInDay.toSet() as Set<File>);
+        widget.selectedFiles.unSelectAll(widget.filesInDay.toSet());
       });
     } else {
-      widget.selectedFiles.selectAll(widget.filesInDay.toSet() as Set<File>);
+      widget.selectedFiles.selectAll(widget.filesInDay.toSet());
     }
   }
 }

+ 2 - 3
lib/ui/huge_listview/scroll_bar_thumb.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 
 class ScrollBarThumb extends StatelessWidget {
@@ -144,7 +142,8 @@ class SlideFadeTransition extends StatelessWidget {
   Widget build(BuildContext context) {
     return AnimatedBuilder(
       animation: animation!,
-      builder: (context, child) => animation!.value == 0.0 ? Container() : child!,
+      builder: (context, child) =>
+          animation!.value == 0.0 ? Container() : child!,
       child: SlideTransition(
         position: Tween(
           begin: const Offset(0.3, 0.0),

+ 0 - 2
lib/ui/lifecycle_event_handler.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/foundation.dart';
 import 'package:flutter/widgets.dart';
 

+ 4 - 3
lib/ui/loading_photos_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:async';
 import 'dart:io';
 
@@ -145,7 +143,10 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
                       children: [
                         Text(
                           "Did you know?",
-                          style: Theme.of(context).textTheme.headline6!.copyWith(
+                          style: Theme.of(context)
+                              .textTheme
+                              .headline6!
+                              .copyWith(
                                 color: Theme.of(context).colorScheme.greenText,
                               ),
                         ),

+ 6 - 7
lib/ui/nav_bar.dart

@@ -1,5 +1,3 @@
-
-
 library google_nav_bar;
 
 import 'package:flutter/material.dart';
@@ -89,11 +87,12 @@ class _GNavState extends State<GNav> {
                 key: t.key,
                 border: t.border ?? widget.tabBorder,
                 activeBorder: t.activeBorder ?? widget.tabActiveBorder,
-                borderRadius: t.borderRadius as bool? ?? widget.tabBorderRadius != null
-                    ? BorderRadius.all(
-                        Radius.circular(widget.tabBorderRadius!),
-                      )
-                    : const BorderRadius.all(Radius.circular(100.0)),
+                borderRadius:
+                    t.borderRadius as bool? ?? widget.tabBorderRadius != null
+                        ? BorderRadius.all(
+                            Radius.circular(widget.tabBorderRadius!),
+                          )
+                        : const BorderRadius.all(Radius.circular(100.0)),
                 debug: widget.debug ?? false,
                 margin: t.margin ?? widget.tabMargin,
                 active: selectedIndex == widget.tabs!.indexOf(t),

+ 1 - 1
lib/ui/notification/update/change_log_page.dart

@@ -109,7 +109,7 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
             "share, end-to-end encrypted and secure.\n\nYour quick links will "
             "appear at the bottom of the share tab so that you can remove them "
             "when they're no longer needed, or convert them to regular albums "
-            "by renaming them if you want them to stick around.\n\nDepending on the feedback, we\'ll iterate on this (automatically prune quick "
+            "by renaming them if you want them to stick around.\n\nDepending on the feedback, we'll iterate on this (automatically prune quick "
             "links, directly open the photo if only a single photo is shared, "
             "etc). So let us know which direction you wish us to head!",
       ),

+ 0 - 2
lib/ui/payment/subscription_common_widgets.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
 import 'package:photos/models/subscription.dart';

+ 0 - 2
lib/ui/payment/subscription_plan_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/utils/data_util.dart';
 

+ 0 - 2
lib/ui/settings/app_update_dialog.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:logging/logging.dart';
 // import 'package:open_file/open_file.dart';

+ 0 - 1
lib/ui/settings/storage_card_widget.dart

@@ -8,7 +8,6 @@ import 'package:photos/states/user_details_state.dart';
 import 'package:photos/theme/colors.dart';
 import 'package:photos/theme/ente_theme.dart';
 import 'package:photos/ui/common/loading_widget.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/ui/payment/subscription.dart';
 import 'package:photos/ui/settings/storage_progress_widget.dart';
 import 'package:photos/utils/data_util.dart';

+ 0 - 2
lib/ui/settings/theme_switch_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:adaptive_theme/adaptive_theme.dart';
 import 'package:flutter/material.dart';
 import 'package:intl/intl.dart';

+ 0 - 2
lib/ui/settings_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:io';
 
 import 'package:flutter/foundation.dart';

+ 4 - 5
lib/ui/shared_collections_gallery.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:async';
 import 'dart:math';
 
@@ -39,7 +37,8 @@ class _SharedCollectionGalleryState extends State<SharedCollectionGallery>
     with AutomaticKeepAliveClientMixin {
   final Logger _logger = Logger("SharedCollectionGallery");
   late StreamSubscription<LocalPhotosUpdatedEvent> _localFilesSubscription;
-  late StreamSubscription<CollectionUpdatedEvent> _collectionUpdatesSubscription;
+  late StreamSubscription<CollectionUpdatedEvent>
+      _collectionUpdatesSubscription;
   late StreamSubscription<UserLoggedOutEvent> _loggedOutEvent;
 
   @override
@@ -70,8 +69,8 @@ class _SharedCollectionGalleryState extends State<SharedCollectionGallery>
         final List<CollectionWithThumbnail> outgoing = [];
         final List<CollectionWithThumbnail> incoming = [];
         for (final file in files) {
-          final c =
-              CollectionsService.instance.getCollectionByID(file.collectionID!)!;
+          final c = CollectionsService.instance
+              .getCollectionByID(file.collectionID!)!;
           if (c.owner!.id == Configuration.instance.getUserID()) {
             if (c.sharees!.isNotEmpty ||
                 c.publicURLs!.isNotEmpty ||

+ 4 - 6
lib/ui/sharing/manage_links_widget.dart

@@ -265,10 +265,6 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
   }
 
   Future<void> showPicker() async {
-    Widget getOptionText(String text) {
-      return Text(text, style: Theme.of(context).textTheme.subtitle1);
-    }
-
     return showCupertinoModalPopup(
       context: context,
       builder: (context) {
@@ -362,8 +358,10 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
                 diameterRatio: 1,
                 children: _expiryOptions
                     .map(
-                      (e) => Text(e.item2,
-                          style: Theme.of(context).textTheme.subtitle1),
+                      (e) => Text(
+                        e.item2,
+                        style: Theme.of(context).textTheme.subtitle1,
+                      ),
                     )
                     .toList(),
               ),

+ 0 - 2
lib/ui/tools/debug/log_file_viewer.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:io';
 import 'dart:ui';
 

+ 0 - 2
lib/ui/tools/editor/filtered_image.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:math';
 
 import 'package:flutter/widgets.dart';

+ 0 - 2
lib/ui/tools/free_space_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:intl/intl.dart';
 import 'package:logging/logging.dart';

+ 0 - 2
lib/ui/tools/lock_screen.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:logging/logging.dart';
 import 'package:photos/ui/common/gradient_button.dart';

+ 0 - 2
lib/ui/viewer/file/exif_info_dialog.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:ui';
 
 import 'package:flutter/material.dart';

+ 0 - 2
lib/ui/viewer/file/fading_bottom_bar.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:io';
 
 import 'package:flutter/cupertino.dart';

+ 0 - 2
lib/ui/viewer/file/file_info_collection_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
 

+ 0 - 2
lib/ui/viewer/file/file_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:logging/logging.dart';
 import 'package:photos/models/file.dart';

+ 0 - 2
lib/ui/viewer/file/raw_exif_list_tile_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:exif/exif.dart';
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';

+ 2 - 3
lib/ui/viewer/file/zoomable_image.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:io';
 
 import 'package:flutter/material.dart';
@@ -143,7 +141,8 @@ class _ZoomableImageState extends State<ZoomableImage>
     if (!_loadedSmallThumbnail &&
         !_loadedLargeThumbnail &&
         !_loadedFinalImage) {
-      final cachedThumbnail = ThumbnailLruCache.get(_photo!, thumbnailSmallSize);
+      final cachedThumbnail =
+          ThumbnailLruCache.get(_photo!, thumbnailSmallSize);
       if (cachedThumbnail != null) {
         _imageProvider = Image.memory(cachedThumbnail).image;
         _loadedSmallThumbnail = true;

+ 0 - 2
lib/ui/viewer/file/zoomable_live_image.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:io' as io;
 
 import 'package:chewie/chewie.dart';

+ 0 - 2
lib/ui/viewer/gallery/archive_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:collection/collection.dart' show IterableExtension;
 import 'package:flutter/material.dart';
 import 'package:photos/core/configuration.dart';

+ 6 - 3
lib/ui/viewer/gallery/device_folder_page.dart

@@ -191,7 +191,8 @@ class _BackupHeaderWidgetState extends State<BackupHeaderWidget> {
   }
 
   Future<bool> _hasIgnoredFiles(
-      Future<List<File>> filesInDeviceCollection) async {
+    Future<List<File>> filesInDeviceCollection,
+  ) async {
     final List<File> deviceCollectionFiles = await filesInDeviceCollection;
 
     final localIDsOfFiles = <String>{};
@@ -207,8 +208,10 @@ class ResetIgnoredFilesWidget extends StatefulWidget {
   final Future<List<File>> filesInDeviceCollection;
   final VoidCallback parentSetState;
   const ResetIgnoredFilesWidget(
-      this.filesInDeviceCollection, this.parentSetState,
-      {super.key});
+    this.filesInDeviceCollection,
+    this.parentSetState, {
+    super.key,
+  });
 
   @override
   State<ResetIgnoredFilesWidget> createState() =>

+ 4 - 3
lib/ui/viewer/gallery/gallery_overlay_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:async';
 import 'dart:io';
 import 'dart:ui';
@@ -210,7 +208,10 @@ class _OverlayWidgetState extends State<OverlayWidget> {
                       child: Center(
                         child: Text(
                           'Cancel',
-                          style: Theme.of(context).textTheme.subtitle2!.copyWith(
+                          style: Theme.of(context)
+                              .textTheme
+                              .subtitle2!
+                              .copyWith(
                                 fontWeight: FontWeight.w600,
                                 color: Theme.of(context).colorScheme.iconColor,
                               ),

+ 0 - 2
lib/ui/viewer/gallery/hidden_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:collection/collection.dart' show IterableExtension;
 import 'package:flutter/material.dart';
 import 'package:photos/core/configuration.dart';

+ 2 - 3
lib/ui/viewer/gallery/trash_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:ui';
 
 import 'package:collection/collection.dart' show IterableExtension;
@@ -129,7 +127,8 @@ class _TrashPageState extends State<TrashPage> {
             padding: const EdgeInsets.all(16),
             child: Text(
               'Items show the number the days remaining before permanent deletion',
-              style: Theme.of(context).textTheme.caption!.copyWith(fontSize: 16),
+              style:
+                  Theme.of(context).textTheme.caption!.copyWith(fontSize: 16),
             ),
           );
         } else {

+ 0 - 2
lib/ui/viewer/search/result/file_result_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
 import 'package:photos/models/file.dart';

+ 0 - 2
lib/ui/viewer/search/result/search_result_page.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/core/event_bus.dart';
 import 'package:photos/events/files_updated_event.dart';

+ 0 - 2
lib/ui/viewer/search/search_suffix_icon_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
 

+ 0 - 2
lib/ui/viewer/search/search_suggestions.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter/material.dart';
 import 'package:logging/logging.dart';
 import 'package:photos/db/files_db.dart';

+ 0 - 2
lib/ui/viewer/search/search_widget.dart

@@ -1,5 +1,3 @@
-
-
 import 'dart:async';
 
 import 'package:flutter/material.dart';

+ 0 - 1
lib/utils/file_uploader_util.dart

@@ -16,7 +16,6 @@ import 'package:photos/models/file.dart' as ente;
 import 'package:photos/models/file_type.dart';
 import 'package:photos/models/location.dart';
 import 'package:photos/utils/crypto_util.dart';
-// ignore: import_of_legacy_library_into_null_safe
 import 'package:photos/utils/file_util.dart';
 import 'package:video_thumbnail/video_thumbnail.dart';