updated flashcards
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user