From 0814c1740754addae66bc90e91c85fa545caaef6 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 15 Apr 2024 23:47:44 +0800 Subject: [PATCH] :sparkles: More and more reactions --- lib/models/reaction.dart | 3 +++ lib/widgets/posts/item.dart | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/models/reaction.dart b/lib/models/reaction.dart index 6b534e5..6725853 100644 --- a/lib/models/reaction.dart +++ b/lib/models/reaction.dart @@ -9,5 +9,8 @@ final Map reactions = { 'thumb_up': ReactInfo(icon: '👍', attitude: 1), 'thumb_down': ReactInfo(icon: '👎', attitude: 2), 'just_okay': ReactInfo(icon: '😅', attitude: 0), + 'cry': ReactInfo(icon: '😭', attitude: 0), + 'confuse': ReactInfo(icon: '🧐', attitude: 0), + 'retard': ReactInfo(icon: 'ðŸĪŠ', attitude: 0), 'clap': ReactInfo(icon: '👏', attitude: 1), }; diff --git a/lib/widgets/posts/item.dart b/lib/widgets/posts/item.dart index 7310211..d2b7242 100644 --- a/lib/widgets/posts/item.dart +++ b/lib/widgets/posts/item.dart @@ -181,7 +181,14 @@ class _PostItemState extends State { Padding( padding: const EdgeInsets.symmetric(horizontal: 8), child: renderAttachments(), - ) + ), + ClipRRect( + borderRadius: BorderRadius.circular(8), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 8), + child: renderReactions(), + ), + ), ], ); }