Skip to content

Conversation

@sigurdm
Copy link
Owner

@sigurdm sigurdm commented Nov 30, 2017

Allow the progress-bar to handle drag events, and seek the video correspondingly.

@sigurdm sigurdm requested a review from mravn-google November 30, 2017 12:52
Copy link
Collaborator

@mravn-google mravn-google left a comment

Choose a reason for hiding this comment

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

LGTM

),
onTapUp: (TapUpDetails details) {
onHorizontalDragStart: (DragStartDetails details) {
if (!controller.value.initialized) return;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please format single-statement if branches consistently.

final Duration position = controller.value.duration * relative;
controller.seekTo(position);
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove extra line.

@sigurdm sigurdm merged commit b06912b into import_video_player Nov 30, 2017
sigurdm pushed a commit that referenced this pull request May 15, 2018
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