forked from Nexus/nexus
add placeholder while profile loading
This commit is contained in:
parent
795e9b6e9b
commit
7757825e27
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue