- Visualize audio waveforms from various sources (assets, URLs, and device files).
- Play, pause, and seek audio playback.
- Customizable appearance with adjustable colors, sizes, and spacing.
- Easy integration with existing Flutter applications.
- Flutter SDK (version >=1.17.0)
- Dart SDK (version '>=3.0.0 <4.0.0')
To use the waved_audio_player package, add it to your pubspec.yaml file:
dependencies:
waved_audio_player: ^1.2.1audioplayers: ^6.1.0 Run the following command in your terminal to install the package:
flutter pub getHere's a simple example of how to use the waved_audio_player in your Flutter app:
import'package:flutter/material.dart';
import'package:waved_audio_player/waved_audio_player.dart';
voidmain() {
runApp(MyApp());
}
classMyAppextendsStatelessWidget {
@overrideWidgetbuild(BuildContext context) {
returnMaterialApp(
home:Scaffold(
appBar:AppBar(
title:Text('Waved Audio Player Example'),
),
body:Center(
child:WavedAudioPlayer(
source:AssetSource('assets/sample.mp3'),
iconColor:Colors.red,
iconBackgoundColor:Colors.blue,
playedColor:Colors.green,
unplayedColor:Colors.grey,
waveWidth:100,
barWidth:2,
buttonSize:40,
showTiming:true,
onError: (error) {
print('Error occurred: $error.message');
},
),
),
),
);
}
}For more information about the waved_audio_player package, visit the official documentation on pub.dev.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you find a bug or have a feature request.
If you encounter any problems or have questions about the package, please open an issue on GitHub.
This package is maintained by Ahmed EL RHAOUTI.

