Skip to content
pubscout

social_media_recorder

1.2.1, released 2 years ago by an unverified publisher

A widget that adds a social‑media style button to record audio to a file.

$ flutter pub add social_media_recorder
Source repository

What it does

The package provides a ready‑made button that starts and stops microphone recording, saving the result to a given path. It wraps the `record` package and exposes common audio encoders while handling required permissions.

AI-written summary of version 1.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a quick, cross‑platform audio‑record button with minimal code
  • You want a UI that mimics social‑media voice messages
  • You prefer a widget that manages permissions for you

Skip it when

  • You require advanced audio processing or streaming
  • You need background or continuous recording beyond a button press
  • You want fine‑grained control over the recording pipeline

Strengths

  • Very easy to drop into a UI
  • Handles Android/iOS permission setup in docs
  • Supports multiple audio encoders including OPUS
  • Lightweight wrapper around the popular `record` package

Weaknesses

  • Limited customization of the button UI
  • No support for background or continuous recording
  • Relies on the `record` package; bugs there affect this package

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
6

Add RECORD_AUDIO and WRITE_EXTERNAL_STORAGE permissions to AndroidManifest, set android:requestLegacyExternalStorage="true" if needed; add NSMicrophoneUsageDescription to iOS Info.plist and configure the podfile as shown; ensure permission_handler is initialized.

Align(
  alignment: Alignment.centerRight,
  child: SocialMediaRecorder(
    sendRequestFunction: (soundFile) {
      // handle recorded file
    },
    encode: AudioEncoderType.AAC,
  ),
);

Alternatives

Packages that do the same job and could replace social_media_recorder.

Works with

Packages commonly used together with social_media_recorder: ones it builds on, ones built on it, and its own family.