flutter_system_ringtones
1.1.2, released 4 months ago by imed.dev
Flutter plugin to list and preview system ringtones, alarms and notifications on Android and iOS.
What it does
Provides APIs to fetch lists of system ringtones, alarms and notification sounds, and to play or stop a preview of any selected sound natively. It uses Android’s RingtoneManager and iOS’s AVAudioPlayer under the hood.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display or let users preview the device’s built‑in ringtones, alarms or notification sounds.
- You want a lightweight solution with no runtime dependencies for simple sound enumeration and previewing.
- You are targeting Android and iOS and need native playback without adding a full audio player package.
Skip it when
- You need advanced audio playback features such as streaming, equalizer, or custom audio effects.
- You require a completion callback or event stream for when a preview finishes.
- You are building a cross‑platform app that also needs to record audio or stream from a remote source.
Strengths
- Zero runtime dependencies – no extra packages bundled.
- Native preview playback with a single API call.
- Simple, imperative API that works out of the box on Android and iOS.
- Supports both Android and iOS with minimal platform‑specific code.
Weaknesses
- iOS system sound path is undocumented and may change between iOS versions.
- No completion or progress callbacks for preview playback.
- Only one sound can play at a time; no event stream for state changes.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:flutter_system_ringtones/flutter_system_ringtones.dart';
final ringtones = await FlutterSystemRingtones.getRingtoneSounds();
await FlutterSystemRingtones.play(ringtones.first);Alternatives
Packages that do the same job and could replace flutter_system_ringtones.
- flutter_ringtone_player_plus
Play system ringtones, alarms, notifications and custom audio on Android and iOS.
68Compare - flutter_ringtone_player
A simple player plugin for system default ringtones, alarms and notifications.
59Compare - alarm
A Flutter plugin to set and manage alarms on iOS and Android devices.
82Compare - ffmpeg_kit_flutter_new_audio
Run FFmpeg and FFprobe commands from Dart with prebuilt audio codecs for multiple platforms.
79Compare