Show profile picture on reviews
This commit is contained in:
parent
0ab5fee8b2
commit
68c8064083
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user