Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! TW-1650: reorganize image_builder folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn committed May 10, 2024
1 parent ff1a335 commit 29889f3
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:fluffychat/presentation/model/media/url_preview_presentation.dart';
import 'package:fluffychat/utils/extension/build_context_extension.dart';
import 'package:fluffychat/utils/url_launcher.dart';
import 'package:fluffychat/widgets/mxc_image.dart';
import 'package:fluffychat/widgets/twake_components/twake_preview_link/twake_link_preview_item_style.dart';
Expand Down Expand Up @@ -112,12 +111,8 @@ class LinkPreviewBuilder extends StatelessWidget {
? MxcImage(
key: LinkPreviewBuilder.mxcImageKey,
uri: urlPreviewPresentation.imageUri,
height: TwakeLinkPreviewItemStyle.heightMxcImagePreview,
width: TwakeLinkPreviewItemStyle.heightMxcImagePreview,
cacheWidth: context.getCacheSize(
TwakeLinkPreviewItemStyle.heightMxcImagePreview,
) *
2,
height: MediaQuery.sizeOf(context).height,
width: MediaQuery.sizeOf(context).width,
fit: BoxFit.cover,
isThumbnail: true,
placeholder: (_) => const Skeletonizer.zone(
Expand Down

0 comments on commit 29889f3

Please sign in to comment.