design: Nicer reactions design with size animations

This commit is contained in:
Krille 2024-03-13 14:24:00 +01:00
commit c028c69b2d
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 44 additions and 35 deletions

View file

@ -396,15 +396,20 @@ class Message extends StatelessWidget {
),
),
row,
if (showReceiptsRow)
Padding(
padding: EdgeInsets.only(
top: 4.0,
left: (ownMessage ? 0 : Avatar.defaultSize) + 12.0,
right: 12.0,
),
child: MessageReactions(event, timeline),
),
AnimatedSize(
duration: FluffyThemes.animationDuration,
curve: FluffyThemes.animationCurve,
child: !showReceiptsRow
? const SizedBox.shrink()
: Padding(
padding: EdgeInsets.only(
top: 4.0,
left: (ownMessage ? 0 : Avatar.defaultSize) + 12.0,
right: ownMessage ? 0 : 12.0,
),
child: MessageReactions(event, timeline),
),
),
if (displayReadMarker)
Row(
children: [