fix message radius and reaction padding
This commit is contained in:
@@ -498,8 +498,8 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ContinuousRectangleBorder _getDefaultShape(BuildContext context) {
|
ShapeBorder _getDefaultShape(BuildContext context) {
|
||||||
return ContinuousRectangleBorder(
|
return RoundedRectangleBorder(
|
||||||
side: widget.attachmentBorderSide ??
|
side: widget.attachmentBorderSide ??
|
||||||
widget.borderSide ??
|
widget.borderSide ??
|
||||||
BorderSide(
|
BorderSide(
|
||||||
@@ -718,7 +718,7 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
onLongPress: () => onLongPress(context),
|
onLongPress: () => onLongPress(context),
|
||||||
child: Material(
|
child: Material(
|
||||||
shape: widget.shape ??
|
shape: widget.shape ??
|
||||||
ContinuousRectangleBorder(
|
RoundedRectangleBorder(
|
||||||
side: widget.borderSide ??
|
side: widget.borderSide ??
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: Theme.of(context).brightness == Brightness.dark
|
color: Theme.of(context).brightness == Brightness.dark
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ class ReactionBubble extends StatelessWidget {
|
|||||||
borderRadius: BorderRadius.all(Radius.circular(14)),
|
borderRadius: BorderRadius.all(Radius.circular(14)),
|
||||||
),
|
),
|
||||||
child: Wrap(
|
child: Wrap(
|
||||||
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
...reactions.map((reaction) {
|
...reactions.map((reaction) {
|
||||||
final reactionIcon = reactionIcons.firstWhere(
|
final reactionIcon = reactionIcons.firstWhere(
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class ReactionPicker extends StatelessWidget {
|
|||||||
reactionIcon.iconData,
|
reactionIcon.iconData,
|
||||||
color: ownReactionIndex != -1
|
color: ownReactionIndex != -1
|
||||||
? StreamChatTheme.of(context).accentColor
|
? StreamChatTheme.of(context).accentColor
|
||||||
: Theme.of(context).iconTheme.color,
|
: Theme.of(context).iconTheme.color.withOpacity(.5),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (ownReactionIndex != -1) {
|
if (ownReactionIndex != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user