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.
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.
- audioplayers
A Flutter plugin to play multiple audio files simultaneously
87Compare - alarm
A Flutter plugin to set and manage alarms on iOS and Android devices.
82Compare - flutter_recorder
Low-level cross-platform audio recorder plugin using miniaudio with real-time waveform, FFT and volume.
88Compare - ffmpeg_kit_flutter_new_audio
Run FFmpeg and FFprobe commands from Dart with prebuilt audio codecs for multiple platforms.
79Compare
Works with
Packages commonly used together with social_media_recorder: ones it builds on, ones built on it, and its own family.
- path_providersocial_media_recorder depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- cupertino_iconssocial_media_recorder depends on itAsset package providing Cupertino icon font for Flutter
- permission_handlersocial_media_recorder depends on itCross-platform API to check and request permissions on iOS, Android, Web, and Windows.
- recordsocial_media_recorder depends on itRecord audio from the microphone to a file or stream with multiple codec options.
- providersocial_media_recorder depends on itA lightweight wrapper around InheritedWidget for state management
- animated_text_kitsocial_media_recorder depends on itFlutter widget library providing a collection of ready‑to‑use text animation effects.