export settings file

Closes #950

tweak

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-07 20:59:58 +08:00
parent ef1ccabc8a
commit be998b8ee1
11 changed files with 80 additions and 39 deletions

View File

@@ -58,10 +58,9 @@ class PlayOrPauseButtonState extends State<PlayOrPauseButton>
height: 34,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () async {
onTap: () {
if (player.state.completed) {
await player.seek(Duration.zero);
player.play();
player.seek(Duration.zero).whenComplete(player.play);
} else {
player.playOrPause();
}