handle null error in profile
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -65,6 +65,10 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
|
||||
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(),
|
||||
|
||||
Reference in New Issue
Block a user