From ce83b928cbbc333334592a4e89747b45d3e86ba5 Mon Sep 17 00:00:00 2001 From: Ava Shilling <165050625+avashilling@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:06:58 -0500 Subject: [PATCH] chore: remove unused audio choice card --- .../choice_cards/audio_choice_card.dart | 52 ------------------- 1 file changed, 52 deletions(-) delete mode 100644 lib/pangea/analytics_practice/choice_cards/audio_choice_card.dart diff --git a/lib/pangea/analytics_practice/choice_cards/audio_choice_card.dart b/lib/pangea/analytics_practice/choice_cards/audio_choice_card.dart deleted file mode 100644 index a7a26864e..000000000 --- a/lib/pangea/analytics_practice/choice_cards/audio_choice_card.dart +++ /dev/null @@ -1,52 +0,0 @@ -import 'package:flutter/material.dart'; - -import 'package:fluffychat/l10n/l10n.dart'; -import 'package:fluffychat/pangea/analytics_practice/choice_cards/game_choice_card.dart'; -import 'package:fluffychat/pangea/common/widgets/word_audio_button.dart'; -import 'package:fluffychat/widgets/matrix.dart'; - -/// Displays an audio button with a select label in a row layout -/// TODO: needs a better design and button handling -class AudioChoiceCard extends StatelessWidget { - final String text; - final String targetId; - final VoidCallback onPressed; - final bool isCorrect; - final double height; - final bool isEnabled; - - const AudioChoiceCard({ - required this.text, - required this.targetId, - required this.onPressed, - required this.isCorrect, - this.height = 72.0, - this.isEnabled = true, - super.key, - }); - - @override - Widget build(BuildContext context) { - return GameChoiceCard( - shouldFlip: false, - targetId: targetId, - onPressed: onPressed, - isCorrect: isCorrect, - height: height, - isEnabled: isEnabled, - child: Row( - children: [ - Expanded( - child: WordAudioButton( - text: text, - uniqueID: "vocab_practice_choice_$text", - langCode: - MatrixState.pangeaController.userController.userL2!.langCode, - ), - ), - Text(L10n.of(context).select), - ], - ), - ); - } -}