From b25ffbe700147f7284e8544f65d529018702efb0 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Thu, 3 Jul 2025 01:58:05 +0530 Subject: [PATCH] chore: lint fixes --- mobile/lib/utils/share_util.dart | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/mobile/lib/utils/share_util.dart b/mobile/lib/utils/share_util.dart index 3574a39e08..9813d9fb03 100644 --- a/mobile/lib/utils/share_util.dart +++ b/mobile/lib/utils/share_util.dart @@ -13,13 +13,11 @@ import "package:photos/generated/l10n.dart"; import "package:photos/models/collection/collection.dart"; import 'package:photos/models/file/file.dart'; import 'package:photos/models/file/file_type.dart'; -import "package:photos/ui/sharing/show_images_prevew.dart"; import 'package:photos/utils/dialog_util.dart'; import 'package:photos/utils/exif_util.dart'; import 'package:photos/utils/file_util.dart'; import 'package:photos/utils/standalone/date_time.dart'; import 'package:receive_sharing_intent/receive_sharing_intent.dart'; -import "package:screenshot/screenshot.dart"; import 'package:share_plus/share_plus.dart'; import "package:uuid/uuid.dart"; @@ -253,7 +251,6 @@ Future shareAlbumLinkWithPlaceholder( String url, GlobalKey key, ) async { - final ScreenshotController screenshotController = ScreenshotController(); final List filesInCollection = (await FilesDB.instance.getFilesInCollection( collection.id, @@ -297,21 +294,3 @@ Rect _sharePosOrigin(BuildContext? context, GlobalKey? key) { } return rect; } - -Future _createAlbumPlaceholder( - List files, - ScreenshotController screenshotController, - BuildContext context, -) async { - final Widget imageWidget = LinkPlaceholder( - files: files, - ); - final double pixelRatio = MediaQuery.devicePixelRatioOf(context); - final bytesOfImageToWidget = await screenshotController.captureFromWidget( - imageWidget, - pixelRatio: pixelRatio, - targetSize: MediaQuery.sizeOf(context), - delay: const Duration(milliseconds: 300), - ); - return bytesOfImageToWidget; -}