mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-20 02:20:11 +08:00
refactor progress bar
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -183,10 +183,9 @@ class _PostPanelState extends State<PostPanel>
|
||||
late final PlPlayerController plPlayerController = widget.plPlayerController;
|
||||
late final List<PostSegmentModel> list = videoDetailController.postList;
|
||||
|
||||
double get videoDuration =>
|
||||
plPlayerController.duration.value.inMilliseconds / 1000;
|
||||
double get videoDuration => plPlayerController.durationInMilliseconds / 1000;
|
||||
|
||||
double currentPos() => plPlayerController.position.inMilliseconds / 1000;
|
||||
double currentPos() => plPlayerController.positionInMilliseconds / 1000;
|
||||
|
||||
@override
|
||||
Widget buildPage(ThemeData theme) {
|
||||
|
||||
Reference in New Issue
Block a user