refactor: conditionalize profile fields, update chat navigation transitions, and fix provider state management during widget lifecycle
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user