1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 06:53:23 +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>[ children: <Widget>[
// Like button // Like button
Center( 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 { class LikeWidget extends StatefulWidget {
final LikeElement likeElement; final LikeElement likeElement;
final double buttonIconSize;
const LikeWidget({ const LikeWidget({
Key key, Key key,
@required this.likeElement, @required this.likeElement,
this.buttonIconSize = 15.0,
}) : assert(likeElement != null), }) : assert(likeElement != null),
super(key: key); super(key: key);
@ -53,7 +55,7 @@ class _LikeWidgetState extends SafeState<LikeWidget> {
Icon( Icon(
Icons.thumb_up, Icons.thumb_up,
color: elem.userLike ? Colors.blue : null, color: elem.userLike ? Colors.blue : null,
size: 15.0, size: widget.buttonIconSize,
), ),
SizedBox( SizedBox(
width: 8.0, width: 8.0,