1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 16:25:17 +00:00

Use Like widget on Post element

This commit is contained in:
2020-04-15 19:07:15 +02:00
parent 5f70669a84
commit 2d26395d73
2 changed files with 25 additions and 65 deletions

View File

@ -55,27 +55,22 @@ class _LikeWidgetState extends SafeState<LikeWidget> {
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(top: 4.0, bottom: 4.0),
child: Align(
alignment: AlignmentDirectional.topStart,
child: Column(
children: <Widget>[
InkWell(
onTap: () => _toggleLike(),
child: Row(
children: <Widget>[
Icon(
Icons.thumb_up,
color: widget.isLiking ? Colors.blue : null,
size: 15.0,
),
SizedBox(
width: 8.0,
),
Text(_likeString),
],
child: IntrinsicWidth(
child: InkWell(
onTap: () => _toggleLike(),
child: Row(
children: <Widget>[
Icon(
Icons.thumb_up,
color: widget.isLiking ? Colors.blue : null,
size: 15.0,
),
),
],
SizedBox(
width: 8.0,
),
Text(_likeString),
],
),
),
),
);