profile tablet and web null check
This commit is contained in:
@@ -64,6 +64,10 @@ class _DesktopProfilePageState extends State<DesktopProfilePage> {
|
||||
return Center(child: Text(viewModel.errorMessage!));
|
||||
}
|
||||
|
||||
if (viewModel.companyProfileData == null) {
|
||||
return Center(child: Text(AppStrings.noData));
|
||||
}
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
DesktopNavigationWidget(
|
||||
|
||||
@@ -64,6 +64,10 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
|
||||
return Center(child: Text(viewModel.errorMessage!));
|
||||
}
|
||||
|
||||
if (viewModel.companyProfileData == null) {
|
||||
return Center(child: Text(AppStrings.noData));
|
||||
}
|
||||
|
||||
return SafeArea(
|
||||
child: Scaffold(
|
||||
key: key,
|
||||
|
||||
Reference in New Issue
Block a user