Skip to content

Commit

Permalink
Fixed controls not displaying on video finished, 0.0.31 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jhomlala committed Nov 1, 2020
1 parent 3cbe18d commit 7883d0f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 0.0.31
* Added showPlaceholderUntilPlay in BetterPlayerConfiguration
* Fixed exception event not being triggered

* Fixed controls not displaying on video finished

## 0.0.30
* Fixed issue when full screen was triggered twice if autoPlay and fullScreenByDefault were enabled
Expand Down
3 changes: 3 additions & 0 deletions lib/src/controls/better_player_cupertino_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,9 @@ class _BetterPlayerCupertinoControlsState
isLoading(_controller.value)) {
setState(() {
_latestValue = _controller.value;
if (isVideoFinished(_latestValue)) {
_hideStuff = false;
}
});
}
}
Expand Down
3 changes: 3 additions & 0 deletions lib/src/controls/better_player_material_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ class _BetterPlayerMaterialControlsState
isLoading(_controller.value)) {
setState(() {
_latestValue = _controller.value;
if (isVideoFinished(_latestValue)) {
_hideStuff = false;
}
});
}
}
Expand Down

0 comments on commit 7883d0f

Please sign in to comment.