Compare commits

...

3 Commits

Author SHA1 Message Date
71aa42118d fix web analyzer (#327) 2023-11-26 09:43:23 +09:00
4f21d3e6bd update pubspec.yaml (#325) 2023-11-15 10:50:00 -08:00
96d0fe9e5e fix new comment indicator. (#324) 2023-11-15 01:15:10 -08:00
4 changed files with 8 additions and 6 deletions

View File

@ -0,0 +1,4 @@
- New comment indicator.
- Ability to mark stories as read from home page.
- Text rendering improvements.
- Performance improvements.

View File

@ -184,7 +184,7 @@ class CommentTile extends StatelessWidget {
color: Palette.grey,
),
),
if (isNew)
if (!comment.dead && isNew)
const Padding(
padding: EdgeInsets.only(left: 4),
child: Icon(

View File

@ -219,10 +219,8 @@ class WebAnalyzer {
String? fallbackDescription;
if (res == null || isEmpty(res[2] as String?)) {
final String? commentText = await compute(
_fetchInfoFromStory,
<int>[story.id, ...story.kids],
);
final List<int> ids = <int>[story.id, ...story.kids];
final String? commentText = await _fetchInfoFromStory(ids);
shouldRetry = commentText == null;
fallbackDescription = commentText ?? 'no comment yet';

View File

@ -1,6 +1,6 @@
name: hacki
description: A Hacker News reader.
version: 2.4.0+131
version: 2.4.2+133
publish_to: none
environment: