feat: Tried fix
This commit is contained in:
@@ -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(),
|
||||||
),
|
]),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user