feat: Tried fix

This commit is contained in:
Deven Joshi
2020-10-30 17:10:06 +05:30
parent 67499020cb
commit f10d63f713
+8 -3
View File
@@ -30,9 +30,14 @@ class ReactionPicker extends StatelessWidget {
), ),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: user.id == message.user.id ? MainAxisAlignment.end : MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.end,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: reactionIcons.map((reactionIcon) { children: [
if(user.id == message.id)
SizedBox(
width: 50.0,
),
...reactionIcons.map((reactionIcon) {
final ownReactionIndex = message.ownReactions?.indexWhere( final ownReactionIndex = message.ownReactions?.indexWhere(
(reaction) => reaction.type == reactionIcon.type) ?? (reaction) => reaction.type == reactionIcon.type) ??
-1; -1;
@@ -59,7 +64,7 @@ class ReactionPicker extends StatelessWidget {
}, },
); );
}).toList(), }).toList(),
), ]),
); );
} }