Bladeren bron

Remove title from delete aciton sheets

Neeraj Gupta 2 jaren geleden
bovenliggende
commit
77dfaf0b8a
2 gewijzigde bestanden met toevoegingen van 2 en 5 verwijderingen
  1. 0 2
      lib/ui/viewer/file/fading_app_bar.dart
  2. 2 3
      lib/utils/delete_file_util.dart

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

@@ -353,7 +353,6 @@ class FadingAppBarState extends State<FadingAppBar> {
         file.uploadedFileID == null && file.localID != null;
     final bool isRemoteOnly =
         file.uploadedFileID != null && file.localID == null;
-    final String title = "Delete $fileType${isBothLocalAndRemote ? '' : '?'}";
     const String bodyHighlight = "It will be deleted from all albums.";
     String body = "";
     if (isBothLocalAndRemote) {
@@ -442,7 +441,6 @@ class FadingAppBarState extends State<FadingAppBar> {
       context: context,
       buttons: buttons,
       actionSheetType: ActionSheetType.defaultActionSheet,
-      title: title,
       body: body,
       bodyHighlight: bodyHighlight,
     );

+ 2 - 3
lib/utils/delete_file_util.dart

@@ -509,8 +509,8 @@ Future<void> showDeleteSheet(
   final bool isBothLocalAndRemote = containsUploadedFile && containsLocalFile;
   final bool isLocalOnly = !containsUploadedFile;
   final bool isRemoteOnly = !containsLocalFile;
-  final String title = "Delete item${count > 1 ? 's' : ''}"
-      "${isBothLocalAndRemote ? '' : '?'}";
+  // final String title = "Delete item${count > 1 ? 's' : ''}"
+  //     "${isBothLocalAndRemote ? '' : '?'}";
   final String? bodyHighlight =
       isBothLocalAndRemote ? "They will be deleted from all albums." : null;
   String body = "";
@@ -597,7 +597,6 @@ Future<void> showDeleteSheet(
     context: context,
     buttons: buttons,
     actionSheetType: ActionSheetType.defaultActionSheet,
-    title: title,
     body: body,
     bodyHighlight: bodyHighlight,
   );