From d8edbe625a1a8289f2bf0aada412301088d05e92 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Fri, 19 May 2023 17:54:28 +0530 Subject: [PATCH] chore: remove dead code. Signed-off-by: xsahil03x --- .../lib/src/attachment/url_attachment.dart | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/attachment/url_attachment.dart b/packages/stream_chat_flutter/lib/src/attachment/url_attachment.dart index 968803d0..5e9ca5dd 100644 --- a/packages/stream_chat_flutter/lib/src/attachment/url_attachment.dart +++ b/packages/stream_chat_flutter/lib/src/attachment/url_attachment.dart @@ -35,33 +35,6 @@ class StreamUrlAttachment extends StatelessWidget { /// The function called when tapping on a link final void Function(String)? onLinkTap; - //placeholder: (context, __) { - // final image = Image.asset( - // 'images/placeholder.png', - // fit: BoxFit.cover, - // package: 'stream_chat_flutter', - // ); - // final colorTheme = StreamChatTheme.of(context).colorTheme; - // return Shimmer.fromColors( - // baseColor: colorTheme.disabled, - // highlightColor: colorTheme.inputBg, - // child: image, - // ); - // }, - // errorWidget: (context, url, error) => - // AttachmentError(constraints: constraints), - // ), - // ); - // }, - // ); - // } - // - Widget _imageErrorBuilder(BuildContext _, Object __, StackTrace? ___) => - Image.asset( - 'images/placeholder.png', - package: 'stream_chat_flutter', - ); - @override Widget build(BuildContext context) { return ConstrainedBox(