Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Inline delete sheet illustration

ashilkn5c3cffa12d12
diff --git a/mobile/apps/photos/lib/utils/delete_file_util.dart b/mobile/apps/photos/lib/utils/delete_file_util.dart
index b4f1816cc0..8af6f64359 100644
--- a/mobile/apps/photos/lib/utils/delete_file_util.dart
+++ b/mobile/apps/photos/lib/utils/delete_file_util.dart
@@ -946,10 +946,6 @@ Future<ButtonResult?> _showMixedDeleteTargetSheet({
);
}
-Widget _deleteSheetIllustration() {
- return Image.asset("assets/warning-grey.png");
-}
-
Future<ButtonResult?> _showSingleDeleteConfirmationSheet({
required BuildContext context,
required String body,
@@ -964,7 +960,7 @@ Future<ButtonResult?> _showSingleDeleteConfirmationSheet({
builder: (sheetContext) => BottomSheetComponent(
title: l10n.areYouSure,
message: body,
- illustration: _deleteSheetIllustration(),
+ illustration: Image.asset("assets/warning-grey.png"),
closeTooltip: l10n.close,
closeResult: ButtonResult(ButtonAction.fourth),
actions: [
@@ -1001,7 +997,7 @@ class _MixedDeleteTargetSheet extends StatelessWidget {
return BottomSheetComponent(
title: title,
message: '$body\n$bodyHighlight',
- illustration: _deleteSheetIllustration(),
+ illustration: Image.asset("assets/warning-grey.png"),
closeTooltip: closeTooltip,
actions: [
for (final option in options)