File tree 1 file changed +12
-11
lines changed
packages/stream_chat_flutter/lib/src/message_modal
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ class StreamMessageReactionsModal extends StatelessWidget {
92
92
};
93
93
94
94
return StreamMessageModal (
95
+ alignment: switch (reverse) {
96
+ true => Alignment .centerRight,
97
+ false => Alignment .centerLeft,
98
+ },
95
99
headerBuilder: (context) {
96
100
return Column (
97
101
spacing: 10 ,
@@ -111,17 +115,14 @@ class StreamMessageReactionsModal extends StatelessWidget {
111
115
final hasReactions = reactions != null && reactions.isNotEmpty;
112
116
if (! hasReactions) return const Empty ();
113
117
114
- return Column (
115
- mainAxisSize: MainAxisSize .min,
116
- crossAxisAlignment: CrossAxisAlignment .stretch,
117
- children: [
118
- ReactionsCard (
119
- message: message,
120
- currentUser: currentUser,
121
- messageTheme: messageTheme,
122
- onUserAvatarTap: onUserAvatarTap,
123
- ),
124
- ],
118
+ return FractionallySizedBox (
119
+ widthFactor: 0.78 ,
120
+ child: ReactionsCard (
121
+ message: message,
122
+ currentUser: currentUser,
123
+ messageTheme: messageTheme,
124
+ onUserAvatarTap: onUserAvatarTap,
125
+ ),
125
126
);
126
127
},
127
128
);
You can’t perform that action at this time.
0 commit comments