-
Notifications
You must be signed in to change notification settings - Fork 162
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
fix: 🐛 Enable seek gesture in paused mode #272
fix: 🐛 Enable seek gesture in paused mode #272
Conversation
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.
Update change log, readme and format
cc18dea
to
827191f
Compare
lib/src/audio_file_waveforms.dart
Outdated
@@ -62,6 +62,9 @@ class AudioFileWaveforms extends StatefulWidget { | |||
/// Allow seeking with gestures when turned on. | |||
final bool enableSeekGesture; | |||
|
|||
/// Allow seeking with gestures on pause mode. | |||
final bool enableSeekGestureOnPauseMode; |
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.
we do not need this variable
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.
so it means we didn't provide access to enable and disable this functionality? @ujas-m-simformsolutions
if (progress < 0 || | ||
_playerState.isStopped || | ||
((_playerState.isPaused || _playerState.isInitialised) && | ||
!enableSeekGestureOnPauseMode)) return; |
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.
This can be simplified as suggested before.
cf7c0c0
to
fab7640
Compare
fab7640
to
65b5674
Compare
This PR fix 200.