mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Use Like widget on Post element
This commit is contained in:
@ -55,27 +55,22 @@ class _LikeWidgetState extends SafeState<LikeWidget> {
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 4.0, bottom: 4.0),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional.topStart,
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
InkWell(
|
||||
onTap: () => _toggleLike(),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons.thumb_up,
|
||||
color: widget.isLiking ? Colors.blue : null,
|
||||
size: 15.0,
|
||||
),
|
||||
SizedBox(
|
||||
width: 8.0,
|
||||
),
|
||||
Text(_likeString),
|
||||
],
|
||||
child: IntrinsicWidth(
|
||||
child: InkWell(
|
||||
onTap: () => _toggleLike(),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons.thumb_up,
|
||||
color: widget.isLiking ? Colors.blue : null,
|
||||
size: 15.0,
|
||||
),
|
||||
),
|
||||
],
|
||||
SizedBox(
|
||||
width: 8.0,
|
||||
),
|
||||
Text(_likeString),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user