Minor ui fixes

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-01-12 19:46:19 +05:30
parent 16bedf8728
commit 80d8c48826
3 changed files with 18 additions and 23 deletions
+2 -4
View File
@@ -164,7 +164,7 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
), ),
Padding( Padding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
right: widget.reverse ? 16 : 0, right: widget.reverse ? 8 : 0,
left: widget.reverse ? 0 : 48, left: widget.reverse ? 0 : 48,
), ),
child: SizedBox( child: SizedBox(
@@ -448,9 +448,7 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
), ),
], ],
), ),
onTap: () { onTap: () => _showFlagDialog(),
_showFlagDialog();
},
); );
} }
+8 -5
View File
@@ -1525,11 +1525,14 @@ class MessageInputState extends State<MessageInput> {
return Transform( return Transform(
transform: Matrix4.rotationY(pi), transform: Matrix4.rotationY(pi),
alignment: Alignment.center, alignment: Alignment.center,
child: QuotedMessageWidget( child: Padding(
reverse: true, padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),
showBorder: !containsUrl, child: QuotedMessageWidget(
message: widget.quotedMessage, reverse: true,
messageTheme: StreamChatTheme.of(context).otherMessageTheme, showBorder: !containsUrl,
message: widget.quotedMessage,
messageTheme: StreamChatTheme.of(context).otherMessageTheme,
),
), ),
); );
} }
+8 -14
View File
@@ -37,27 +37,21 @@ Future<bool> showConfirmationDialog(
return Column( return Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
SizedBox( SizedBox(height: 26.0),
height: 26.0,
),
if (icon != null) icon, if (icon != null) icon,
SizedBox( SizedBox(height: 26.0),
height: 26.0,
),
Text( Text(
title, title,
style: StreamChatTheme.of(context).textTheme.headlineBold, style: StreamChatTheme.of(context).textTheme.headlineBold,
), ),
SizedBox( SizedBox(height: 7.0),
height: 7.0, Text(
), question,
Text(question), textAlign: TextAlign.center,
SizedBox(
height: 36.0,
), ),
SizedBox(height: 36.0),
Container( Container(
color: color: StreamChatTheme.of(context).colorTheme.greyGainsboro,
StreamChatTheme.of(context).colorTheme.black.withOpacity(.08),
height: 1.0, height: 1.0,
), ),
Row( Row(