comment button

This commit is contained in:
2024-12-02 16:47:13 +08:00
committed by nyne
parent 0e831468ee
commit 546f619063

View File

@@ -288,8 +288,7 @@ class _ComicPageState extends LoadingState<ComicPage, ComicDetails>
onLongPressed: quickFavorite, onLongPressed: quickFavorite,
iconColor: context.useTextColor(Colors.purple), iconColor: context.useTextColor(Colors.purple),
), ),
if (comicSource.commentsLoader != null && if (comicSource.commentsLoader != null)
(comic.comments == null || comic.comments!.isEmpty))
_ActionButton( _ActionButton(
icon: const Icon(Icons.comment), icon: const Icon(Icons.comment),
text: (comic.commentsCount ?? 'Comments'.tl).toString(), text: (comic.commentsCount ?? 'Comments'.tl).toString(),