add new vocabulary mode

This commit is contained in:
Rene Kievits
2025-10-28 03:42:16 +01:00
parent 61081ac8a4
commit 68f6fa12bb
7 changed files with 593 additions and 19 deletions

View File

@@ -8,8 +8,6 @@ import '../widgets/kanji_card.dart';
import '../widgets/options_grid.dart';
import 'settings_screen.dart';
import '../models/kanji_item.dart';
class _ReadingInfo {
final List<String> correctReadings;
final String hint;
@@ -104,7 +102,7 @@ class _HomeScreenState extends State<HomeScreen> {
final pickedType = choices[_random.nextInt(choices.length)];
final readingsList = pickedType == 'onyomi' ? item.onyomi : item.kunyomi;
final hint = 'Select the ${pickedType == 'onyomi' ? "on\'yomi" : "kunyomi"}';
final hint = 'Select the ${pickedType == 'onyomi' ? "on'yomi" : "kunyomi"}';
return _ReadingInfo(readingsList, hint);
}