Skip to content

Commit

Permalink
Scroll bar and dictionary fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arianneorpilla committed May 30, 2021
1 parent 99a1b3d commit fca6cb0
Show file tree
Hide file tree
Showing 9 changed files with 284 additions and 268 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p align="center">A mobile video player and card creation toolkit tailored for language learners.</p>

<p align="center" style="margin:0"><b>Latest GitHub Release:<br>
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.17.3-beta">0.17.3-beta 🇯🇵 → 🇬🇧</a><br>
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.17.4-beta">0.17.4-beta 🇯🇵 → 🇬🇧</a><br>
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.16.7-beta-kren">0.16.7-beta 🇰🇷 → 🇬🇧</a></b><br>

<p align="center" style="margin:0"><b>Release Archive:<br>
Expand All @@ -25,7 +25,7 @@
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.14.2-beta">0.14</a> ·
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.15.8-beta">0.15</a> ·
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.16.7-beta">0.16</a> ·
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.17.3-beta">0.17</a>
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.17.4-beta">0.17</a>
</b></p>

# 📚 Uninterrupted language immersion at your fingertips
Expand Down
18 changes: 9 additions & 9 deletions lib/dictionary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,16 @@ DictionaryEntry getEntryFromJishoResult(JishoResult result, String searchTerm) {
String term = word.word;
String reading = word.reading;

if (!hasDuplicateReading(exportTerm, term)) {
exportTerm = "$exportTerm$term; ";
if (term == null) {
exportTerm += "";
} else {
if (!hasDuplicateReading(exportTerm, term)) {
exportTerm = "$exportTerm$term; ";
}
}
if (!hasDuplicateReading(exportReadings, reading)) {
exportReadings = "$exportReadings$reading; ";
}

if (term == null) {
exportTerm = "";
}
});

if (exportReadings.isNotEmpty) {
Expand Down Expand Up @@ -575,9 +575,9 @@ DictionaryEntry getEntryFromGooElement(
}
meaning = meaning.trim();

print(word);
print(reading);
print(meaning);
// print(word);
// print(reading);
// print(meaning);

DictionaryEntry singleEntry = DictionaryEntry(
word: word,
Expand Down
1 change: 1 addition & 0 deletions lib/globals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ Map<String, AsyncMemoizer> gMetadataCache = {};
List<DictionaryEntry> gKanjiumDictionary;
List<DictionaryEntry> gCustomDictionary;
Fuzzy gCustomDictionaryFuzzy;
ScrollController gCurrentScrollbar;

ValueNotifier<bool> gPlayPause = ValueNotifier<bool>(true);
Loading

0 comments on commit fca6cb0

Please sign in to comment.