add new vocabulary mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user