https://github.com/hallerpatrick/flutter_volume
A flutter plugin for controlling volume
https://github.com/hallerpatrick/flutter_volume
Last synced: 11 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-12T11:55:23.000Z (over 7 years ago)
- Last Synced: 2025-08-31T15:42:37.219Z (11 months 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!)