diff --git a/lib/voice_selector.dart b/lib/voice_selector.dart index a796062..422109d 100644 --- a/lib/voice_selector.dart +++ b/lib/voice_selector.dart @@ -331,7 +331,8 @@ class _VoiceSelectorState extends State { const SizedBox(width: 10), downloadedModels.contains(modelFile) ? currentVoice == modelFile && - currentSubVoice == selectedSubVoice[voiceId] + currentSubVoice == + (selectedSubVoice[voiceId] ?? 0) ? const SizedBox( height: 20, width: 99,