Search packages, repositories and app categories

Package detailsv0.1.2

flutter_audio_player

Plugin that allow flutter to play a local short sound(30 seconds or less in duration).

30-day downloads
32
Likes
10
Pub points
40

Install package

flutter pub add flutter_audio_player

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin designed to play short local audio files, ideal for sounds up to 30 seconds in duration. It provides a simple interface for loading and playing audio assets within Flutter applications. The plugin is lightweight and optimized for quick sound playback, making it suitable for notifications, game effects, or interactive feedback. It supports basic playback controls such as play, pause, and stop. The source code is publicly available on GitHub for transparency and customization.

Use cases

  • Playing short sound effects
  • Implementing audio feedback in apps
  • Adding sound to game interactions
  • Supporting accessibility features with audio cues

Key features

  • Simple API for audio playback
  • Optimized for short audio clips
  • Supports local file playback
  • Basic playback control (play/pause/stop)
  • Open-source with public repository

Suitable for

  • Game developers
  • App designers needing sound feedback
  • Accessibility-focused applications
  • Lightweight audio integration

Considerations

  • Not suited for long-form audio
  • Limited to local files only
  • No streaming support
  • No advanced audio processing features

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_audio_player

Plugin that allow flutter to play a local short sound(30 seconds or less in duration).

Install

add flutter_audio_player as a dependency in pubspec.yaml

How to use

  1. add audio file
  2. add asset in pubspec.yaml
  3. you can add audio to player list AudioPlayer.addSound(soundPath);
  4. you can remove all audio in player list AudioPlayer.removeAllSound();

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Categories

Source repository

Projects using this package

No data available yet.