Skip to content

Expose showTitle and trailingBuilder of StreamVoiceRecordingAttachment for better customisability #2341

Description

@khensunny

Please select which package this feature is related to

stream_chat_flutter

Which platforms would this feature impact?

iOS, Android

Is your feature request related to a problem?

The default voice recording message widget currently displays technical details that aren't user-friendly for typical voice note interactions. Specifically:

  • The cryptic filename is shown by default (e.g., "audio_175....")
  • The generic file type icon doesn't provide a good user experience
Current default appearance

Describe the solution that you'd like

Expose additional customization properties(via StreamVoiceRecordingAttachmentPlaylist) to allow developers to:

  • Hide or customize the filename display
  • Customize the icon widget currently used by the filetype icon

Describe alternatives that you have considered

Current Workaround:
I was able to achieve the desired appearance (shown below) by forking the default implementation. However, this required copying substantial amounts of code when I only needed to modify these two visual properties.

Desired appearance after customization

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions