add placeholder while profile loading

This commit is contained in:
Henry Hiles 2026-06-10 10:40:21 -04:00
commit 7757825e27
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -131,9 +131,11 @@ class UserBottomSheet extends ConsumerWidget {
ref ref
.watch(ProfileController.provider(userId)) .watch(ProfileController.provider(userId))
.betterWhen( .betterWhen(
loading: SizedBox.shrink, loading: () => Text(""),
data: (profile) => Column( data: (profile) => Column(
children: [ children: [
if (profile.timezone == null && profile.pronouns.isEmpty)
Text(""),
Wrap( Wrap(
crossAxisAlignment: .center, crossAxisAlignment: .center,
alignment: .center, alignment: .center,