From bc3972082c6963f6527f5724823eecb1c34ef54a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 16 May 2020 09:17:49 +0200 Subject: [PATCH] Improve show more comments button --- lib/ui/tiles/post_tile.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/ui/tiles/post_tile.dart b/lib/ui/tiles/post_tile.dart index 64ac36c..6748a73 100644 --- a/lib/ui/tiles/post_tile.dart +++ b/lib/ui/tiles/post_tile.dart @@ -380,11 +380,14 @@ class _PostTileState extends State { ); } - Widget _buildShowMoreCommentsButton() => InkWell( - onTap: () => setState(() => _maxNumberOfCommentToShow += 10), - child: Padding( - padding: const EdgeInsets.all(8.0), - child: Text(tr("Show more comments")), + Widget _buildShowMoreCommentsButton() => Material( + color: Colors.transparent, + child: InkWell( + onTap: () => setState(() => _maxNumberOfCommentToShow += 10), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Text(tr("Show more comments").toUpperCase()), + ), ), );