Skip to content

Commit

Permalink
Minor Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sadrohan committed Apr 19, 2021
1 parent a6fd932 commit 10f8126
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.1

* Minor Bug Fixed.

## 0.1.0

* Migrate to null safety.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Add following dependencies to your pubspec.yaml:

```yaml
dependencies:
ringtone_player: ^0.1.0 #latest version
ringtone_player: ^0.1.1 #latest version
```
## Usage
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.4"
version: "0.1.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down
7 changes: 6 additions & 1 deletion lib/src/player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ class RingtonePlayer {
);

/// Play default system ringtone
static Future<void> ringtone({double? volume, bool loop = true, bool alarm = false, AlarmMeta? alarmMeta}) async => play(
static Future<void> ringtone(
{double? volume,
bool loop = true,
bool alarm = false,
AlarmMeta? alarmMeta}) async =>
play(
android: Android.ringtone,
ios: Ios.electronic,
volume: volume,
Expand Down
4 changes: 3 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: ringtone_player
description: A player for system default ringtone, alarm and notification.
version: 0.1.0
version: 0.1.1
authors:
- CRUV <[email protected]>
homepage: https://github.com/cruvdev/ringtone_player/
repository: https://github.com/cruvdev/ringtone_player/
issue_tracker: https://github.com/cruvdev/ringtone_player/issues/
Expand Down

0 comments on commit 10f8126

Please sign in to comment.