1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00

Improve comments appearance

This commit is contained in:
Pierre HUBERT 2019-05-18 16:22:40 +02:00
parent 64958bb391
commit 9d5762ecfd

View File

@ -58,6 +58,7 @@ class CommentTile extends StatelessWidget {
child: comment.hasContent child: comment.hasContent
? Text( ? Text(
comment.content, comment.content,
style: TextStyle(color: Colors.black),
) )
: null, : null,
), ),
@ -78,22 +79,28 @@ class CommentTile extends StatelessWidget {
/// Build like button associated to this post /// Build like button associated to this post
Widget _buildLikeButton() { Widget _buildLikeButton() {
return Align( return Padding(
alignment: AlignmentDirectional.topStart, padding: const EdgeInsets.only(top: 4.0, bottom: 4.0),
child: FlatButton( child: Align(
padding: EdgeInsets.only(left: 0.0), alignment: AlignmentDirectional.topStart,
onPressed: () => onUpdateLike(comment), child: Column(
child: Row(
children: <Widget>[ children: <Widget>[
Icon( InkWell(
Icons.thumb_up, onTap: () => onUpdateLike(comment),
color: comment.userLike ? Colors.blue : null, child: Row(
size: 15.0, children: <Widget>[
Icon(
Icons.thumb_up,
color: comment.userLike ? Colors.blue : null,
size: 15.0,
),
SizedBox(
width: 8.0,
),
Text(_likeString),
],
),
), ),
SizedBox(
width: 8.0,
),
Text(_likeString),
], ],
), ),
), ),