handle null error in profile
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
class AppStrings {
|
class AppStrings {
|
||||||
AppStrings._();
|
AppStrings._();
|
||||||
|
|
||||||
|
static const String noData = 'No data';
|
||||||
|
|
||||||
// App Titles
|
// App Titles
|
||||||
static const String appName = 'My Awesome App';
|
static const String appName = 'My Awesome App';
|
||||||
static const String loginTitle = 'Welcome Back';
|
static const String loginTitle = 'Welcome Back';
|
||||||
|
|||||||
@@ -65,6 +65,10 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
|
|||||||
return Center(child: Text(viewModel.errorMessage!));
|
return Center(child: Text(viewModel.errorMessage!));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (viewModel.companyProfileData == null) {
|
||||||
|
return Center(child: Text(AppStrings.noData));
|
||||||
|
}
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
horizontal: 24.0.w(),
|
horizontal: 24.0.w(),
|
||||||
|
|||||||
Reference in New Issue
Block a user