Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mehranshoqi committed Dec 14, 2023
1 parent 6bd1b3f commit 8d68581
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## 2.1.2
## 2.1.3
35 changes: 16 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

## Voicey - Flutter voice message player

<!-- <p align="center">
<img src="voicey-logos.jpeg" alt="voice message package" width="200" style="border-radius: 50%; overflow:hidden;">
</p> -->
Expand All @@ -13,7 +13,6 @@
![](https://img.shields.io/pub/v/voice_message_package?color=D1F5FF&style=for-the-badge)
![](https://img.shields.io/github/last-commit/mehranshoqi/voice_message_player?color=F0F600&style=for-the-badge)


## Demo

<div style="height:24px;"></div>
Expand Down Expand Up @@ -42,9 +41,11 @@ First add voicey to your pubsbec.yaml file:
dependencies:
voice_message_package: <latest-version>
```
<div style="height:12px;"></div>
Next, get package from pub dependencies:
```dart
flutter pub get
```
Expand All @@ -54,32 +55,26 @@ flutter pub get
## How to use

All you need is pass your audio file src to VoiceMessage widget:

```dart
VoiceMessageView(
VoiceMessageView(
controller: VoiceController(
audioSrc:
'https://dl.musichi.ir/1401/06/21/Ghors%202.mp3',
maxDuration: const Duration(seconds: 120),
audioSrc: 'https://dl.musichi.ir/1401/06/21/Ghors%202.mp3',
maxDuration: const Duration(seconds: 0),
isFile: false,
onComplete: () {
print('onComplete');
},
onPause: () {
print('onPause');
},
onPlaying: () {
print('onPlaying');
},
onComplete: () {},
onPause: () {},
onPlaying: () {},
onError: (err) {},
),
innerPadding: 12,
cornerRadius: 20,
),
)
```

## Todo

- [✔️] Seeking on audio by drag on noises.
- [✔️] Change playback speed.
- [✔️] Handle exceptions.
- [ ] dynamic size for voice widget.

<div style="height:40px;"></div>
Expand All @@ -90,6 +85,8 @@ Licensed under the MIT license. See [LICENSE](https://github.com/mehranshoqi/voi

:pushpin:Find me at [www.mehran.monster](https://mehran.monster)

### Contributing

##### :beer: Pull requests are welcome!


Don't forget that `open-source` makes no sense without contributors. No matter how big your changes are, it helps us a lot even it is a line of change.
5 changes: 2 additions & 3 deletions example/lib/widgets/bubble.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ class Bubble extends StatelessWidget {
Widget _bubble(BuildContext context) => voice
? VoiceMessageView(
controller: VoiceController(
audioSrc:
// 'https://dl.musicdel.ir/Music/1400/08/morteza_pashaei_setayesh%20128.mp3',
'https://dl.musichi.ir/1401/06/21/Ghors%202.mp3',
audioSrc: 'https://dl.musichi.ir/1401/06/21/Ghors%202.mp3',
maxDuration: const Duration(seconds: 0),
isFile: false,
onComplete: () {},
onPause: () {},
onPlaying: () {},
onError: (err) {},
),
)
: Container(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: voice_message_package
description: Flutter package to play/puase voice message in chat messengers.
version: 2.1.2
version: 2.1.3
homepage: https://mehran.monster/htmls/voicey.html

environment:
Expand Down

0 comments on commit 8d68581

Please sign in to comment.