Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mehranshoqi committed Apr 25, 2024
1 parent 20d0f4c commit 4b6f370
Show file tree
Hide file tree
Showing 7 changed files with 538 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.4
## 2.2.0
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
![](voice_message_intro.gif)

<div style="height:12px;"></div>
<p style="font-size: 18px"/>
<p style="font-size: 18px" >
Voicey is a flutter package to play voice messages in chats. Also, you can sicking by dragging on voice noises.
</p>
<div style="height:40px;"></div>
Expand Down Expand Up @@ -59,15 +59,26 @@ All you need is pass your audio file src to VoiceMessage widget:
```dart
VoiceMessageView(
controller: VoiceController(
audioSrc: 'https://dl.musichi.ir/1401/06/21/Ghors%202.mp3',
maxDuration: const Duration(seconds: 0),
isFile: false,
onComplete: () {},
onPause: () {},
onPlaying: () {},
onError: (err) {},
audioSrc:
'https://dl.solahangs.com/Music/1403/02/H/128/Hiphopologist%20-%20Shakkak%20%28128%29.mp3',
onComplete: () {
/// do something on complete
},
onPause: () {
/// do something on pause
},
onPlaying: () {
/// do something on playing
},
onError: (err) {
/// do somethin on error
},
),
)
maxDuration: const Duration(seconds: 10),
isFile: false,
innerPadding: 12,
cornerRadius: 20,
),
```

## Todo
Expand All @@ -76,7 +87,8 @@ VoiceMessageView(
- [✔️] Seeking on audio by drag on noises.
- [✔️] Change playback speed.
- [✔️] Handle exceptions.
- [ ] dynamic size for voice widget.
- [✔️] Customization .
- [✔️] Dynamic width for voice widget.

<div style="height:40px;"></div>

Expand Down
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MyApp extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
Container(height: 50.h),
SizedBox(height: 50.h),
VoiceMessageView(
controller: VoiceController(
audioSrc:
Expand All @@ -42,7 +42,7 @@ class MyApp extends StatelessWidget {
innerPadding: 12,
cornerRadius: 20,
),
Container(height: 80.h),
SizedBox(height: 80.h),
],
),
),
Expand Down
Loading

0 comments on commit 4b6f370

Please sign in to comment.