diff --git a/lib/src/message_actions_modal.dart b/lib/src/message_actions_modal.dart index 7f9c5e85..2d125bab 100644 --- a/lib/src/message_actions_modal.dart +++ b/lib/src/message_actions_modal.dart @@ -164,7 +164,7 @@ class _MessageActionsModalState extends State { ), Padding( padding: EdgeInsets.only( - right: widget.reverse ? 16 : 0, + right: widget.reverse ? 8 : 0, left: widget.reverse ? 0 : 48, ), child: SizedBox( @@ -448,9 +448,7 @@ class _MessageActionsModalState extends State { ), ], ), - onTap: () { - _showFlagDialog(); - }, + onTap: () => _showFlagDialog(), ); } diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 8bb20302..4561372e 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -1525,11 +1525,14 @@ class MessageInputState extends State { return Transform( transform: Matrix4.rotationY(pi), alignment: Alignment.center, - child: QuotedMessageWidget( - reverse: true, - showBorder: !containsUrl, - message: widget.quotedMessage, - messageTheme: StreamChatTheme.of(context).otherMessageTheme, + child: Padding( + padding: const EdgeInsets.fromLTRB(8, 8, 8, 0), + child: QuotedMessageWidget( + reverse: true, + showBorder: !containsUrl, + message: widget.quotedMessage, + messageTheme: StreamChatTheme.of(context).otherMessageTheme, + ), ), ); } diff --git a/lib/src/utils.dart b/lib/src/utils.dart index 6548b987..d1dec9c8 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -37,27 +37,21 @@ Future showConfirmationDialog( return Column( mainAxisSize: MainAxisSize.min, children: [ - SizedBox( - height: 26.0, - ), + SizedBox(height: 26.0), if (icon != null) icon, - SizedBox( - height: 26.0, - ), + SizedBox(height: 26.0), Text( title, style: StreamChatTheme.of(context).textTheme.headlineBold, ), - SizedBox( - height: 7.0, - ), - Text(question), - SizedBox( - height: 36.0, + SizedBox(height: 7.0), + Text( + question, + textAlign: TextAlign.center, ), + SizedBox(height: 36.0), Container( - color: - StreamChatTheme.of(context).colorTheme.black.withOpacity(.08), + color: StreamChatTheme.of(context).colorTheme.greyGainsboro, height: 1.0, ), Row(