Skip to content

Commit

Permalink
Fix format error and dart analyze issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Dec 22, 2023
1 parent 9b3a9ec commit 85c5bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/video_player_videohole/lib/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
/// has been sent to the platform, not when playback itself is totally
/// finished.
Future<void> play() async {
if (value.position == value.duration) {
if (value.position == value.duration.end) {
await seekTo(Duration.zero);
}
value = value.copyWith(isPlaying: true);
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player_videohole/pigeons/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class GeometryMessage {
int height;
}

class DurationMessage{
class DurationMessage {
DurationMessage(this.playerId);
int playerId;
List<int?>? durationRange;
Expand Down

0 comments on commit 85c5bc6

Please sign in to comment.