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
|
||||
.watch(ProfileController.provider(userId))
|
||||
.betterWhen(
|
||||
loading: SizedBox.shrink,
|
||||
loading: () => Text(""),
|
||||
data: (profile) => Column(
|
||||
children: [
|
||||
if (profile.timezone == null && profile.pronouns.isEmpty)
|
||||
Text(""),
|
||||
Wrap(
|
||||
crossAxisAlignment: .center,
|
||||
alignment: .center,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue