Skip to main content

likedUserCircleAvatar function

Widget likedUserCircleAvatar (LikedBy user)

<p>likedUserCircleAvatar returns a widget of the individual user liked the post.</p>

Implementation

Widget likedUserCircleAvatar(LikedBy user) \{
return Padding(
padding: const EdgeInsets.only(right: 10.0, bottom: 16.0),
child: Stack(
clipBehavior: Clip.none,
alignment: Alignment.center,
children: [
const CircleAvatar(
backgroundColor: Color(0xfff2f2f2),
radius: 20,
),
const Positioned(
top: 30,
right: 0,
bottom: 20,
left: 20,
child: Icon(
Icons.thumb_up,
color: Colors.blue,
size: 20,
),
),
],
),
);
\}