Show profile picture on reviews

This commit is contained in:
Reimar 2024-09-13 12:12:58 +02:00
parent 0ab5fee8b2
commit 68c8064083
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268

View File

@ -80,9 +80,23 @@ class _ReviewListState extends State<ReviewListPage> {
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Padding( Padding(
padding: EdgeInsets.only(top: 3), padding: const EdgeInsets.only(top: 3),
child: Icon(Icons.rate_review, color: Colors.purple, size: 36), child:
_getReviewUser(review)?.profilePicture.isNotEmpty == true
? ClipOval(
child: Image(
image: NetworkImage(_getReviewUser(review)!.profilePicture),
height: 36,
width: 36,
fit: BoxFit.cover,
),
)
: const Icon(
Icons.account_circle,
size: 36,
color: Colors.grey,
)
), ),
const SizedBox(width: 20), const SizedBox(width: 20),
Expanded( Expanded(