Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hallerpatrick/flutter_volume
A flutter plugin for controlling volume
https://github.com/hallerpatrick/flutter_volume
Last synced: 10 days ago
JSON representation
A flutter plugin for controlling volume
- Host: GitHub
- URL: https://github.com/hallerpatrick/flutter_volume
- Owner: HallerPatrick
- License: other
- Created: 2018-07-22T13:34:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-12T11:55:23.000Z (almost 6 years ago)
- Last Synced: 2024-12-08T18:04:55.451Z (17 days ago)
- Language: Ruby
- Homepage:
- Size: 114 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_volume
A flutter plugin as an volume interface for iOS and android.
## Getting Started
Set flutter_volume as dependencie in your pubspec.yaml
## Usage
```dart
import 'package:flutter_volume/flutter_volume.dart';// Return relative volume as double between 0.0 and 1.0
await FlutterVolume.volume;// Return mode as int, 0:silent; 1:vibrate; 2:normal
await FlutterVolume.muteMode;// Sets volume to 0.0
FlutterVolume.mute();// Set volume between 0.0 and 1.0 as relative value
FlutterVolume.setVolume(0.1);```
## TODO
- Make it iOS compatible (help is appreciated!)