show loading widget if network api for userdetails fails

This commit is contained in:
ashilkn 2022-10-10 19:36:07 +05:30
parent 7405a4097e
commit 0043246109
2 changed files with 2 additions and 2 deletions

View file

@ -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();
},

View file

@ -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();
}