Skip to content
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

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

ujas-m-simformsolutions
Copy link
Collaborator

No description provided.

// Prepare player with extracting waveform if index is even.
controller.preparePlayer(
path: widget.path ?? file!.path,
shouldExtractWaveform: widget.index?.isEven ?? true,

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

void dispose() {
super.dispose();
playerStateSubscription.cancel();
if (widget.isLast) {

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(

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;
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make changes

@ujas-m-simformsolutions ujas-m-simformsolutions merged commit 2beaee5 into main Dec 20, 2022
@ujas-m-simformsolutions ujas-m-simformsolutions deleted the feature/update-example-app branch January 12, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants