From e6634c24cad59914b7dcef5d5079bdfa86ffd522 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 27 Feb 2021 10:47:02 +0800 Subject: [PATCH] flutter: audio: Remove onBoardTap()'s duplicate play audio putPiece() and removePiece() has played. --- src/ui/flutter_app/lib/widgets/game_page.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/flutter_app/lib/widgets/game_page.dart b/src/ui/flutter_app/lib/widgets/game_page.dart index 32a91157..441879f6 100644 --- a/src/ui/flutter_app/lib/widgets/game_page.dart +++ b/src/ui/flutter_app/lib/widgets/game_page.dart @@ -127,10 +127,10 @@ class _GamePageState extends State with RouteAware { case Act.place: if (position.putPiece(sq)) { if (position.action == Act.remove) { - Audios.playTone('mill.mp3'); + //Audios.playTone('mill.mp3'); changeStatus(S.of(context).tipRemove); } else { - Audios.playTone('place.mp3'); + //Audios.playTone('place.mp3'); changeStatus(S.of(context).tipPlaced); } ret = true; @@ -161,7 +161,7 @@ class _GamePageState extends State with RouteAware { case Act.remove: if (position.removePiece(sq)) { - Audios.playTone('remove.mp3'); + //Audios.playTone('remove.mp3'); ret = true; print("removePiece: [$sq]"); changeStatus(S.of(context).tipRemoved);