mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Increase like icon size on posts
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user