refactor: conditionalize profile fields, update chat navigation transitions, and fix provider state management during widget lifecycle

This commit is contained in:
pradeepkumar committed 2026-03-31 13:05:49 +05:30
1 parent 418e350fad
commit a96a7b84d8
4 files changed
+36 -17

No files matched your search

@@ -262,12 +262,14 @@ class _ProfileSettingsTabState extends ConsumerState<ProfileSettingsTab> {
const SizedBox(height: 24),
ProfileFormField(label: 'Full Name', controller: _fullNameController),
const SizedBox(height: 24),
ProfileFormField(
label: isAgent ? 'Career / Agent Type' : 'Professional Title',
controller: _titleController,
enabled: false,
),
if (isAgent) ...[
const SizedBox(height: 24),
ProfileFormField(
label: 'Career / Agent Type',
controller: _titleController,
enabled: false,
),
],
const SizedBox(height: 24),
ProfileFormField(
label: 'Email Address',