1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 12:58:51 +00:00

Increase like icon size on posts

This commit is contained in:
Pierre HUBERT 2020-04-15 19:26:51 +02:00
parent f8a70faf28
commit e777c4c991
2 changed files with 7 additions and 2 deletions

View File

@ -209,7 +209,10 @@ class _PostTileState extends State<PostTile> {
children: <Widget>[
// Like button
Center(
child: LikeWidget(likeElement: widget.post),
child: LikeWidget(
likeElement: widget.post,
buttonIconSize: null,
),
),
],
),

View File

@ -15,10 +15,12 @@ typedef UpdatedLikingCallBack = Function(int, bool);
class LikeWidget extends StatefulWidget {
final LikeElement likeElement;
final double buttonIconSize;
const LikeWidget({
Key key,
@required this.likeElement,
this.buttonIconSize = 15.0,
}) : assert(likeElement != null),
super(key: key);
@ -53,7 +55,7 @@ class _LikeWidgetState extends SafeState<LikeWidget> {
Icon(
Icons.thumb_up,
color: elem.userLike ? Colors.blue : null,
size: 15.0,
size: widget.buttonIconSize,
),
SizedBox(
width: 8.0,