diff --git a/lib/core/constants/strings.dart b/lib/core/constants/strings.dart index 3a2b088..f1013a7 100644 --- a/lib/core/constants/strings.dart +++ b/lib/core/constants/strings.dart @@ -1,5 +1,8 @@ class AppStrings { AppStrings._(); + + static const String noData = 'No data'; + // App Titles static const String appName = 'My Awesome App'; static const String loginTitle = 'Welcome Back'; diff --git a/lib/views/profile/pages/m_profile_page.dart b/lib/views/profile/pages/m_profile_page.dart index 5cae8c6..9da448c 100644 --- a/lib/views/profile/pages/m_profile_page.dart +++ b/lib/views/profile/pages/m_profile_page.dart @@ -65,6 +65,10 @@ class _MobileProfilePageState extends State { return Center(child: Text(viewModel.errorMessage!)); } + if (viewModel.companyProfileData == null) { + return Center(child: Text(AppStrings.noData)); + } + return Padding( padding: EdgeInsets.symmetric( horizontal: 24.0.w(),