minor ui fixes

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-01-05 13:02:17 +05:30
parent 61a1eecc52
commit dc801ca91d
3 changed files with 39 additions and 48 deletions
+14 -27
View File
@@ -313,8 +313,8 @@ class MessageActionsModal extends StatelessWidget {
backgroundColor: StreamChatTheme.of(context).colorTheme.white, backgroundColor: StreamChatTheme.of(context).colorTheme.white,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(32), topLeft: Radius.circular(16),
topRight: Radius.circular(32), topRight: Radius.circular(16),
), ),
), ),
builder: (context) { builder: (context) {
@@ -326,39 +326,26 @@ class MessageActionsModal extends StatelessWidget {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: <Widget>[ children: <Widget>[
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),
top: 16.0,
left: 16.0,
right: 16.0,
),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[ children: <Widget>[
IconButton( Padding(
icon: StreamSvgIcon.edit( padding: const EdgeInsets.all(8.0),
size: 22, child: StreamSvgIcon.edit(
color: color: StreamChatTheme.of(context)
StreamChatTheme.of(context).primaryIconTheme.color, .colorTheme
.greyGainsboro,
), ),
onPressed: () {},
), ),
Text( Text(
'Edit message', 'Edit Message',
style: Theme.of(context) style: TextStyle(fontWeight: FontWeight.bold),
.textTheme
.headline6
.copyWith(fontWeight: FontWeight.bold),
), ),
IconButton( IconButton(
icon: Icon( visualDensity: VisualDensity.compact,
Icons.cancel_outlined, icon: StreamSvgIcon.close_small(),
size: 22, onPressed: Navigator.of(context).pop,
color:
StreamChatTheme.of(context).primaryIconTheme.color,
),
onPressed: () {
Navigator.of(context).pop();
},
), ),
], ],
), ),
+23 -19
View File
@@ -227,26 +227,30 @@ class MessageInputState extends State<MessageInput> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
if (_hasQuotedMessage) if (_hasQuotedMessage)
Row( Padding(
mainAxisAlignment: MainAxisAlignment.spaceBetween, padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),
children: [ child: Row(
Padding( mainAxisAlignment: MainAxisAlignment.spaceBetween,
padding: const EdgeInsets.all(8.0), children: [
child: StreamSvgIcon.reply( Padding(
color: padding: const EdgeInsets.all(8.0),
StreamChatTheme.of(context).colorTheme.greyGainsboro, child: StreamSvgIcon.reply(
color: StreamChatTheme.of(context)
.colorTheme
.greyGainsboro,
),
), ),
), Text(
Text( 'Reply to Message',
'Reply to Message', style: TextStyle(fontWeight: FontWeight.bold),
style: TextStyle(fontWeight: FontWeight.bold), ),
), IconButton(
IconButton( visualDensity: VisualDensity.compact,
visualDensity: VisualDensity.compact, icon: StreamSvgIcon.close_small(),
icon: StreamSvgIcon.close_small(), onPressed: widget.onQuotedMessageCleared,
onPressed: widget.onQuotedMessageCleared, ),
), ],
], ),
), ),
Padding( Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
+2 -2
View File
@@ -10,9 +10,9 @@ class StreamSvgIcon extends StatelessWidget {
const StreamSvgIcon({ const StreamSvgIcon({
this.assetName, this.assetName,
this.width,
this.height,
this.color, this.color,
this.width = 24,
this.height = 24,
}); });
@override @override