From 8794627e7f0c8717c4b8cd3b98766257a8ee3771 Mon Sep 17 00:00:00 2001 From: amirrezaghabeli Date: Wed, 27 Aug 2025 13:34:49 +0330 Subject: [PATCH] profile tablet and web null check --- lib/views/profile/pages/d_profile_page.dart | 4 ++++ lib/views/profile/pages/t_profile_page.dart | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/views/profile/pages/d_profile_page.dart b/lib/views/profile/pages/d_profile_page.dart index 99414dd..a43eff8 100644 --- a/lib/views/profile/pages/d_profile_page.dart +++ b/lib/views/profile/pages/d_profile_page.dart @@ -64,6 +64,10 @@ class _DesktopProfilePageState extends State { return Center(child: Text(viewModel.errorMessage!)); } + if (viewModel.companyProfileData == null) { + return Center(child: Text(AppStrings.noData)); + } + return Column( children: [ DesktopNavigationWidget( diff --git a/lib/views/profile/pages/t_profile_page.dart b/lib/views/profile/pages/t_profile_page.dart index b6c66aa..6ef28e5 100644 --- a/lib/views/profile/pages/t_profile_page.dart +++ b/lib/views/profile/pages/t_profile_page.dart @@ -64,6 +64,10 @@ class _TabletProfilePageState extends State { return Center(child: Text(viewModel.errorMessage!)); } + if (viewModel.companyProfileData == null) { + return Center(child: Text(AppStrings.noData)); + } + return SafeArea( child: Scaffold( key: key,