Scrolling bugfix #392, custom name #420, search archive label #421

This commit is contained in:
Imran Remtulla
2023-04-04 19:59:35 -04:00
parent dea635fa6a
commit e6b05d50b9
5 changed files with 24 additions and 18 deletions

View File

@@ -185,9 +185,11 @@ class GitHub extends AppSource {
Map<String, String> urlsWithDescriptions = {};
for (var e in (jsonDecode(res.body)['items'] as List<dynamic>)) {
urlsWithDescriptions.addAll({
e['html_url'] as String: e['description'] != null
? e['description'] as String
: tr('noDescription')
e['html_url'] as String:
((e['archived'] == true ? '[ARCHIVED] ' : '') +
(e['description'] != null
? e['description'] as String
: tr('noDescription')))
});
}
return urlsWithDescriptions;