profile tablet and web null check

This commit is contained in:
amirrezaghabeli
2025-08-27 13:34:49 +03:30
parent c401c6c8d9
commit 8794627e7f
2 changed files with 8 additions and 0 deletions
@@ -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,