From bf1930cea2422cbad4f2786972a5cbfa40357d00 Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 24 Nov 2024 12:48:37 +0800 Subject: [PATCH] show comment action button if comic.comments is empty --- lib/pages/comic_page.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/comic_page.dart b/lib/pages/comic_page.dart index 5833610..2305e76 100644 --- a/lib/pages/comic_page.dart +++ b/lib/pages/comic_page.dart @@ -288,7 +288,8 @@ class _ComicPageState extends LoadingState onLongPressed: quickFavorite, iconColor: context.useTextColor(Colors.purple), ), - if (comicSource.commentsLoader != null && comic.comments == null) + if (comicSource.commentsLoader != null && + (comic.comments == null || comic.comments!.isEmpty)) _ActionButton( icon: const Icon(Icons.comment), text: (comic.commentsCount ?? 'Comments'.tl).toString(),