mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09: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>[
|
children: <Widget>[
|
||||||
// Like button
|
// Like button
|
||||||
Center(
|
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 {
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user