-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📝 Updated example app 🔨 Fixed tap gesture not working and fixed platform stream being initialised multiple times #138
Conversation
// Prepare player with extracting waveform if index is even. | ||
controller.preparePlayer( | ||
path: widget.path ?? file!.path, | ||
shouldExtractWaveform: widget.index?.isEven ?? true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null check for file!.path
example/lib/chat_bubble.dart
Outdated
void dispose() { | ||
super.dispose(); | ||
playerStateSubscription.cancel(); | ||
if (widget.isLast) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess isLastIndex can be more appropriate
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
if (controller.playerState != PlayerState.stopped) | ||
IconButton( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these states come from our plugin than please make extensions for same like isStopped
); | ||
isPlaying = | ||
controller.playerState == PlayerState.playing; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make changes
0c94610
to
2c9082d
Compare
…orm stream being initialised multiple times
2c9082d
to
dd8667a
Compare
No description provided.