More and more reactions

This commit is contained in:
LittleSheep 2024-04-15 23:47:44 +08:00
parent d2ae4f3292
commit 0814c17407
2 changed files with 11 additions and 1 deletions

View File

@ -9,5 +9,8 @@ final Map<String, ReactInfo> 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),
};

View File

@ -181,7 +181,14 @@ class _PostItemState extends State<PostItem> {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: renderAttachments(),
)
),
ClipRRect(
borderRadius: BorderRadius.circular(8),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: renderReactions(),
),
),
],
);
}