1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +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,11 +79,14 @@ 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(
padding: const EdgeInsets.only(top: 4.0, bottom: 4.0),
child: Align(
alignment: AlignmentDirectional.topStart, alignment: AlignmentDirectional.topStart,
child: FlatButton( child: Column(
padding: EdgeInsets.only(left: 0.0), children: <Widget>[
onPressed: () => onUpdateLike(comment), InkWell(
onTap: () => onUpdateLike(comment),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Icon( Icon(
@ -97,6 +101,9 @@ class CommentTile extends StatelessWidget {
], ],
), ),
), ),
],
),
),
); );
} }
} }