Skip to content

Commit

Permalink
fix: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
esarbanis committed May 9, 2024
1 parent edfe4ba commit dee9bbc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ abstract class StreamAttachmentWidgetBuilder {
padding: padding,
onAttachmentTap: onAttachmentTap,
),

VoiceRecordingAttachmentBuilder(),

Check warning on line 115 in packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart

View check run for this annotation

Codecov / codecov/patch

packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart#L115

Added line #L115 was not covered by tests

// We don't handle URL attachments if the message is a reply.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class _StreamVoiceRecordingPlayerState
}

Widget _content(Duration totalDuration) {

return Container(
padding: const EdgeInsets.all(8),
height: 60,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
part of '../attachment_widget_builder.dart';


/// The default attachment builder for voice recordings
class VoiceRecordingAttachmentBuilder extends StreamAttachmentWidgetBuilder {
@override
Expand Down Expand Up @@ -29,15 +28,15 @@ class VoiceRecordingAttachmentBuilder extends StreamAttachmentWidgetBuilder {
.toList();
}


@override
Widget build(BuildContext context, Message message,
Map<String, List<Attachment>> attachments) {
final recordings = attachments[AttachmentType.voiceRecording]!;

return StreamVoiceRecordingListPlayer(
playList: recordings
.map((r) => PlayListItem(
.map(
(r) => PlayListItem(
assetUrl: r.assetUrl,
duration: _resolveDuration(r),
waveForm: _resolveWaveform(r),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,6 @@ class StreamSvgIcon extends StatelessWidget {
);
}


/// [StreamSvgIcon] type
factory StreamSvgIcon.filetype7z({
double? size,
Expand Down

0 comments on commit dee9bbc

Please sign in to comment.