👽 Support new attachment reference system
This commit is contained in:
@ -202,7 +202,7 @@ class EventCalanderScreen extends HookConsumerWidget {
|
||||
color: Colors.transparent,
|
||||
child: ListTile(
|
||||
leading: ProfilePictureWidget(
|
||||
fileId: user.value!.profile.pictureId,
|
||||
fileId: user.value!.profile.picture?.id,
|
||||
),
|
||||
title: Text(user.value!.nick).bold(),
|
||||
subtitle: Text('@${user.value!.name}'),
|
||||
|
@ -159,9 +159,9 @@ class UpdateProfileScreen extends HookConsumerWidget {
|
||||
child: Container(
|
||||
color: Theme.of(context).colorScheme.surfaceContainerHigh,
|
||||
child:
|
||||
user.value!.profile.backgroundId != null
|
||||
user.value!.profile.background?.id != null
|
||||
? CloudImageWidget(
|
||||
fileId: user.value!.profile.backgroundId!,
|
||||
fileId: user.value!.profile.background!.id,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
@ -175,7 +175,7 @@ class UpdateProfileScreen extends HookConsumerWidget {
|
||||
bottom: -32,
|
||||
child: GestureDetector(
|
||||
child: ProfilePictureWidget(
|
||||
fileId: user.value!.profile.pictureId,
|
||||
fileId: user.value!.profile.picture?.id,
|
||||
radius: 40,
|
||||
),
|
||||
onTap: () {
|
||||
|
@ -67,9 +67,9 @@ class AccountProfileScreen extends HookConsumerWidget {
|
||||
leading: PageBackButton(shadows: [iconShadow]),
|
||||
flexibleSpace: FlexibleSpaceBar(
|
||||
background:
|
||||
data.profile.backgroundId != null
|
||||
data.profile.background?.id != null
|
||||
? CloudImageWidget(
|
||||
fileId: data.profile.backgroundId!,
|
||||
fileId: data.profile.background!.id,
|
||||
)
|
||||
: Container(
|
||||
color:
|
||||
@ -91,7 +91,7 @@ class AccountProfileScreen extends HookConsumerWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
ProfilePictureWidget(
|
||||
fileId: data.profile.pictureId,
|
||||
fileId: data.profile.picture?.id,
|
||||
radius: 32,
|
||||
),
|
||||
const Gap(20),
|
||||
|
@ -100,7 +100,7 @@ class RelationshipListTile extends StatelessWidget {
|
||||
|
||||
return ListTile(
|
||||
contentPadding: const EdgeInsets.only(left: 16, right: 12),
|
||||
leading: ProfilePictureWidget(fileId: account.profile.pictureId),
|
||||
leading: ProfilePictureWidget(fileId: account.profile.picture?.id),
|
||||
title: Row(
|
||||
spacing: 6,
|
||||
children: [
|
||||
|
Reference in New Issue
Block a user