Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamsahdeep/fluttervisualizers
A Flutter Plugin to visualize audio in android
https://github.com/iamsahdeep/fluttervisualizers
audio audio-visualizer flutter flutter-demo flutter-package flutter-plugin flutter-widget flutterwave pubspec visualizer
Last synced: 12 days ago
JSON representation
A Flutter Plugin to visualize audio in android
- Host: GitHub
- URL: https://github.com/iamsahdeep/fluttervisualizers
- Owner: iamSahdeep
- License: apache-2.0
- Created: 2019-04-18T16:49:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T22:35:52.000Z (almost 3 years ago)
- Last Synced: 2024-10-18T07:29:45.918Z (21 days ago)
- Topics: audio, audio-visualizer, flutter, flutter-demo, flutter-package, flutter-plugin, flutter-widget, flutterwave, pubspec, visualizer
- Language: Dart
- Size: 9.89 MB
- Stars: 107
- Watchers: 5
- Forks: 28
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_visualizers (Depreciated & Not maintaining)[![Pub](https://img.shields.io/pub/v/flutter_visualizers.svg?style=flat-square)](https://pub.dartlang.org/packages/flutter_visualizers)
A Flutter plugin to Visualize the audio being played (only android).
## Usage
* Add this to your pubspec.yaml
```
dependencies:
flutter_visualizers: ^0.0.2
```
* Get package from Pub:```
flutter packages get
```
* Import it in your file```
import 'package:flutter_visualizers/flutter_visualizers.dart';
```
## Example
* Firstly, get a audioSessionID from your native android Mediaplayer.
```
player.getAudioSessionId()
```
* Simply Include this code in ``` body ```
```
new Visualizer(
builder: (BuildContext context, List wave) {
return new CustomPaint(
painter: new LineVisualizer(
waveData: wave,
height: MediaQuery.of(context).size.height,
width : MediaQuery.of(context).size.width,
color: Colors.blueAccent,
),
child: new Container(),
);
},
id: playerID,
)
```
Here playerId is the AudioSessionId which id needed to initialize the Visualizer. (Required Audio Recording Permission in Android)See the Complete [Example](https://github.com/iamSahdeep/FlutterVisualizers/tree/master/example)
### Sample![Video](https://github.com/iamSahdeep/FlutterVisualizers/blob/master/assets/sample.gif)
- Apk
[Download](https://github.com/iamSahdeep/FlutterVisualizers/blob/master/assets/app-release.apk)
### Credits
- [GautamChibde](https://github.com/GautamChibde) for awesome [Visualizers](https://github.com/GautamChibde/android-audio-visualizer) in Android from which I made this.
- [Matt Carroll](https://github.com/matthew-carroll) for this [UI](https://github.com/matthew-carroll/flutter_ui_challenge_music_player/blob/recording/lib/main.dart)## License
Copyright [2019] [Sahdeep Singh]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### Getting Started with FlutterThis project is a starting point for a Flutter
[plug-in package](https://flutter.io/developing-packages/),
a specialized package that includes platform-specific implementation code for
Android and/or iOS.For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.