Skip to content

Commit

Permalink
Fixed location (fixes #430) and the picture doesn't show if the windo…
Browse files Browse the repository at this point in the history
…w is too small
  • Loading branch information
Marc-Andrieu committed Sep 19, 2024
1 parent 35bbb23 commit 71aae3b
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions lib/phonebook/ui/pages/association_page/web_member_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,42 +65,42 @@ class WebMemberCard extends HookConsumerWidget {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.1),
spreadRadius: 5,
blurRadius: 10,
offset: const Offset(2, 3),
),
],
),
child: AutoLoaderChild(
group: memberPictures,
notifier: memberPicturesNotifier,
mapKey: member,
loader: (ref) => profilePictureNotifier
.getProfilePicture(member.member.id),
loadingBuilder: (context) => const CircleAvatar(
radius: 40,
child: CircularProgressIndicator(),
),
dataBuilder: (context, data) => CircleAvatar(
radius: 40,
backgroundImage: data.first.image,
),
),
),
const SizedBox(
width: 10,
),
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.1),
spreadRadius: 5,
blurRadius: 10,
offset: const Offset(2, 3),
),
],
),
child: AutoLoaderChild(
group: memberPictures,
notifier: memberPicturesNotifier,
mapKey: member,
loader: (ref) => profilePictureNotifier
.getProfilePicture(member.member.id),
loadingBuilder: (context) => const CircleAvatar(
radius: 40,
child: CircularProgressIndicator(),
),
dataBuilder: (context, data) => CircleAvatar(
radius: 40,
backgroundImage: data.first.image,
),
),
),
const SizedBox(
width: 10,
),
if (member.member.nickname != null) ...[
Row(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down

0 comments on commit 71aae3b

Please sign in to comment.