fix message radius and reaction padding

This commit is contained in:
Salvatore Giordano
2020-10-21 10:02:46 +02:00
parent f209797a6a
commit 4fb41bf601
3 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -498,8 +498,8 @@ class _MessageWidgetState extends State<MessageWidget> {
});
}
ContinuousRectangleBorder _getDefaultShape(BuildContext context) {
return ContinuousRectangleBorder(
ShapeBorder _getDefaultShape(BuildContext context) {
return RoundedRectangleBorder(
side: widget.attachmentBorderSide ??
widget.borderSide ??
BorderSide(
@@ -718,7 +718,7 @@ class _MessageWidgetState extends State<MessageWidget> {
onLongPress: () => onLongPress(context),
child: Material(
shape: widget.shape ??
ContinuousRectangleBorder(
RoundedRectangleBorder(
side: widget.borderSide ??
BorderSide(
color: Theme.of(context).brightness == Brightness.dark
+1
View File
@@ -40,6 +40,7 @@ class ReactionBubble extends StatelessWidget {
borderRadius: BorderRadius.all(Radius.circular(14)),
),
child: Wrap(
spacing: 8,
children: [
...reactions.map((reaction) {
final reactionIcon = reactionIcons.firstWhere(
+1 -1
View File
@@ -45,7 +45,7 @@ class ReactionPicker extends StatelessWidget {
reactionIcon.iconData,
color: ownReactionIndex != -1
? StreamChatTheme.of(context).accentColor
: Theme.of(context).iconTheme.color,
: Theme.of(context).iconTheme.color.withOpacity(.5),
),
onPressed: () {
if (ownReactionIndex != -1) {