From dee9bbcb8d451d2bba4ac7dd8d2252e5fdada878 Mon Sep 17 00:00:00 2001 From: Efthymis Sarmpanis Date: Thu, 9 May 2024 17:20:35 +0300 Subject: [PATCH] fix: fix formatting --- .../src/attachment/builder/attachment_widget_builder.dart | 2 +- .../stream_voice_recording_player.dart | 1 - .../voice_recording_attachment_builder.dart | 5 ++--- .../stream_chat_flutter/lib/src/misc/stream_svg_icon.dart | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart b/packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart index 2410e2e00..5011e7daa 100644 --- a/packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart +++ b/packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart @@ -111,7 +111,7 @@ abstract class StreamAttachmentWidgetBuilder { padding: padding, onAttachmentTap: onAttachmentTap, ), - + VoiceRecordingAttachmentBuilder(), // We don't handle URL attachments if the message is a reply. diff --git a/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_player.dart b/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_player.dart index 51a737aac..d2079d85b 100644 --- a/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_player.dart +++ b/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_player.dart @@ -83,7 +83,6 @@ class _StreamVoiceRecordingPlayerState } Widget _content(Duration totalDuration) { - return Container( padding: const EdgeInsets.all(8), height: 60, diff --git a/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/voice_recording_attachment_builder.dart b/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/voice_recording_attachment_builder.dart index 88eaa280a..286a30235 100644 --- a/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/voice_recording_attachment_builder.dart +++ b/packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/voice_recording_attachment_builder.dart @@ -1,6 +1,5 @@ part of '../attachment_widget_builder.dart'; - /// The default attachment builder for voice recordings class VoiceRecordingAttachmentBuilder extends StreamAttachmentWidgetBuilder { @override @@ -29,7 +28,6 @@ class VoiceRecordingAttachmentBuilder extends StreamAttachmentWidgetBuilder { .toList(); } - @override Widget build(BuildContext context, Message message, Map> attachments) { @@ -37,7 +35,8 @@ class VoiceRecordingAttachmentBuilder extends StreamAttachmentWidgetBuilder { return StreamVoiceRecordingListPlayer( playList: recordings - .map((r) => PlayListItem( + .map( + (r) => PlayListItem( assetUrl: r.assetUrl, duration: _resolveDuration(r), waveForm: _resolveWaveform(r), diff --git a/packages/stream_chat_flutter/lib/src/misc/stream_svg_icon.dart b/packages/stream_chat_flutter/lib/src/misc/stream_svg_icon.dart index 3e806707e..d69b83bad 100644 --- a/packages/stream_chat_flutter/lib/src/misc/stream_svg_icon.dart +++ b/packages/stream_chat_flutter/lib/src/misc/stream_svg_icon.dart @@ -677,7 +677,6 @@ class StreamSvgIcon extends StatelessWidget { ); } - /// [StreamSvgIcon] type factory StreamSvgIcon.filetype7z({ double? size,