mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Increase like icon size on posts
This commit is contained in:
parent
f8a70faf28
commit
e777c4c991
@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user