浏览代码

Lint: Fix trailing comma warnings

Neeraj Gupta 2 年之前
父节点
当前提交
0ddfa1a865

+ 2 - 1
lib/db/files_db.dart

@@ -520,7 +520,8 @@ class FilesDB {
     final List<File> deduplicatedFiles =
         _deduplicatedAndFilterIgnoredFiles(files, ignoredCollectionIDs);
     dev.log(
-        "getAllPendingOrUploadedFiles time taken: ${stopWatch.elapsedMilliseconds} ms");
+      "getAllPendingOrUploadedFiles time taken: ${stopWatch.elapsedMilliseconds} ms",
+    );
     stopWatch.stop();
     return FileLoadResult(deduplicatedFiles, files.length == limit);
   }

+ 3 - 1
lib/ui/account/password_reentry_page.dart

@@ -246,7 +246,9 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
                         behavior: HitTestBehavior.opaque,
                         onTap: () async {
                           final dialog = createProgressDialog(
-                              context, S.of(context).pleaseWait);
+                            context,
+                            S.of(context).pleaseWait,
+                          );
                           await dialog.show();
                           await Configuration.instance.logout();
                           await dialog.hide();

+ 4 - 1
lib/ui/collection_action_sheet.dart

@@ -139,7 +139,10 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
                         BottomOfTitleBarWidget(
                           title: TitleBarTitleWidget(
                             title: _actionName(
-                                context, widget.actionType, filesCount),
+                              context,
+                              widget.actionType,
+                              filesCount,
+                            ),
                           ),
                           caption: widget.showOptionToCreateNewAlbum
                               ? S.of(context).createOrSelectAlbum

+ 3 - 1
lib/ui/collections_list_widget.dart

@@ -259,7 +259,9 @@ class CollectionsListWidget extends StatelessWidget {
           );
         }
         showShortToast(
-            context, S.of(context).thisAlbumAlreadyHDACollaborativeLink);
+          context,
+          S.of(context).thisAlbumAlreadyHDACollaborativeLink,
+        );
         return Future.value(false);
       } else {
         try {

+ 11 - 7
lib/ui/components/title_bar_widget.dart

@@ -149,11 +149,12 @@ class TitleWidget extends StatelessWidget {
   final String? title;
   final String? caption;
   final bool isTitleH2WithoutLeading;
-  const TitleWidget(
-      {this.title,
-      this.caption,
-      required this.isTitleH2WithoutLeading,
-      super.key});
+  const TitleWidget({
+    this.title,
+    this.caption,
+    required this.isTitleH2WithoutLeading,
+    super.key,
+  });
 
   @override
   Widget build(BuildContext context) {
@@ -189,8 +190,11 @@ class FlexibleSpaceBarWidget extends StatelessWidget {
   final String? flexibleSpaceCaption;
   final double toolbarHeight;
   const FlexibleSpaceBarWidget(
-      this.flexibleSpaceTitle, this.flexibleSpaceCaption, this.toolbarHeight,
-      {super.key});
+    this.flexibleSpaceTitle,
+    this.flexibleSpaceCaption,
+    this.toolbarHeight, {
+    super.key,
+  });
 
   @override
   Widget build(BuildContext context) {

+ 3 - 1
lib/ui/payment/payment_web_page.dart

@@ -229,7 +229,9 @@ class _PaymentWebPageState extends State<PaymentWebPage> {
           ? S.of(context).yourPurchaseWasSuccessful
           : S.of(context).yourSubscriptionWasUpdatedSuccessfully;
       await _showExitPageDialog(
-          title: S.of(context).thankYou, content: content);
+        title: S.of(context).thankYou,
+        content: content,
+      );
     } catch (error) {
       _logger.severe(error);
       await _dialog.hide();

+ 5 - 3
lib/ui/sharing/add_partipant_page.dart

@@ -61,9 +61,11 @@ class _AddParticipantPage extends State<AddParticipantPage> {
     return Scaffold(
       resizeToAvoidBottomInset: isKeypadOpen,
       appBar: AppBar(
-        title: Text(widget.isAddingViewer
-            ? S.of(context).addViewer
-            : S.of(context).addCollaborator),
+        title: Text(
+          widget.isAddingViewer
+              ? S.of(context).addViewer
+              : S.of(context).addCollaborator,
+        ),
       ),
       body: Column(
         mainAxisAlignment: MainAxisAlignment.start,

+ 2 - 1
lib/ui/sharing/manage_album_participant.dart

@@ -116,7 +116,8 @@ class _ManageIndividualParticipantState
                         body: S
                             .of(context)
                             .cannotAddMorePhotosAfterBecomingViewer(
-                                widget.user.email),
+                              widget.user.email,
+                            ),
                         isCritical: true,
                       );
                       if (actionResult?.action != null) {

+ 3 - 1
lib/ui/viewer/actions/file_selection_actions_widget.dart

@@ -388,7 +388,9 @@ class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
   Future<void> _onCreatedSharedLinkClicked() async {
     if (split.ownedByCurrentUser.isEmpty) {
       showShortToast(
-          context, S.of(context).canOnlyCreateLinkForFilesOwnedByYou);
+        context,
+        S.of(context).canOnlyCreateLinkForFilesOwnedByYou,
+      );
       return;
     }
     _cachedCollectionForSharedLink ??= await collectionActions

+ 5 - 3
lib/ui/viewer/file/fading_app_bar.dart

@@ -162,9 +162,11 @@ class FadingAppBarState extends State<FadingAppBar> {
                     const Padding(
                       padding: EdgeInsets.all(8),
                     ),
-                    Text(isArchived
-                        ? S.of(context).unarchive
-                        : S.of(context).archive),
+                    Text(
+                      isArchived
+                          ? S.of(context).unarchive
+                          : S.of(context).archive,
+                    ),
                   ],
                 ),
               ),

+ 5 - 3
lib/ui/viewer/gallery/gallery_app_bar_widget.dart

@@ -292,9 +292,11 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
                 const Padding(
                   padding: EdgeInsets.all(8),
                 ),
-                Text(isArchived
-                    ? S.of(context).unarchiveAlbum
-                    : S.of(context).archiveAlbum),
+                Text(
+                  isArchived
+                      ? S.of(context).unarchiveAlbum
+                      : S.of(context).archiveAlbum,
+                ),
               ],
             ),
           ),