updated flashcards

This commit is contained in:
odweta
2026-04-03 13:52:34 +02:00
parent bc68eef63e
commit 8ba8a009a6
3 changed files with 3 additions and 18 deletions
+1 -15
View File
@@ -38,20 +38,6 @@ class QuoteProvider extends ChangeNotifier {
return filtered;
}
Map<String, int> get _authorCounts {
final counts = <String, int>{};
for (var quote in filteredQuotes) {
counts.update(
quote.author,
(value) => value + 1,
ifAbsent: () => 1,
);
}
return counts;
}
List<MapEntry<String, int>> get sortedAuthorCounts {
final counts = <String, int>{};
@@ -88,7 +74,7 @@ class QuoteProvider extends ChangeNotifier {
if (randomQuoteDeterminator) {
return randomQuote.body;
} else {
return randomQuote.author;
return " ${randomQuote.author}";
}
}