show loading widget if network api for userdetails fails
This commit is contained in:
parent
7405a4097e
commit
0043246109
|
@ -88,7 +88,7 @@ class _DetailsSectionWidgetState extends State<DetailsSectionWidget> {
|
|||
}
|
||||
if (snapshot.hasError) {
|
||||
_logger.severe('failed to load user details', snapshot.error);
|
||||
return const SizedBox.shrink();
|
||||
return const EnteLoadingWidget();
|
||||
}
|
||||
return const EnteLoadingWidget();
|
||||
},
|
||||
|
|
|
@ -54,7 +54,7 @@ class SettingsTitleBarWidget extends StatelessWidget {
|
|||
}
|
||||
if (snapshot.hasError) {
|
||||
logger.severe('failed to load user details');
|
||||
return const SizedBox.shrink();
|
||||
return const EnteLoadingWidget();
|
||||
} else {
|
||||
return const EnteLoadingWidget();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue