Update ProfileData model to include companies and enhance profile UI
- Added a new field for companies in the ProfileData model to store associated company information. - Updated JSON serialization methods to handle the new companies field. - Modified profile page views to display the user's full name and company name, replacing previous role and department fields for improved clarity. - Introduced new string constants for full name and phone in ProfileStrings.
This commit is contained in:
@@ -91,6 +91,10 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
|
||||
),
|
||||
|
||||
SizedBox(height: 24.0.h()),
|
||||
TitleDescription(
|
||||
title: ProfileStrings.fullname,
|
||||
description: viewModel.profileData!.fullName ?? '',
|
||||
),
|
||||
TitleDescription(
|
||||
title: ProfileStrings.username,
|
||||
description: viewModel.profileData!.username ?? '',
|
||||
@@ -100,16 +104,13 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
|
||||
description: viewModel.profileData!.email ?? '',
|
||||
),
|
||||
TitleDescription(
|
||||
title: ProfileStrings.role,
|
||||
description: viewModel.profileData!.role ?? '',
|
||||
title: ProfileStrings.phone,
|
||||
description: viewModel.profileData!.phone ?? '',
|
||||
),
|
||||
TitleDescription(
|
||||
title: ProfileStrings.department,
|
||||
description: viewModel.profileData!.department ?? '',
|
||||
),
|
||||
TitleDescription(
|
||||
title: ProfileStrings.position,
|
||||
description: viewModel.profileData!.position ?? '',
|
||||
title: ProfileStrings.companyName,
|
||||
description:
|
||||
viewModel.profileData!.companies!.first.name ?? '',
|
||||
),
|
||||
SizedBox(height: 32.0.h()),
|
||||
Align(
|
||||
|
||||
Reference in New Issue
Block a user