chore: remove dead code.

Signed-off-by: xsahil03x <xdsahil@gmail.com>
This commit is contained in:
Sahil Kumar
2023-05-19 17:54:28 +05:30
committed by xsahil03x
parent 1db3c82e84
commit d8edbe625a
@@ -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(