|
@@ -39,7 +39,7 @@ class SinglePlayButtonState extends State<SinglePlayButton> {
|
|
|
padding: EdgeInsets.zero,
|
|
|
onPressed: () {
|
|
|
if (playing) {
|
|
|
- playerController.pause();
|
|
|
+ playerController.locateTo(playerController.currentFrameIndex);
|
|
|
// playerController.gotoFrame(playerController.currentFrameIndex);
|
|
|
} else {
|
|
|
playerController.play();
|