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

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

View File

@@ -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',