refactor: update profile navigation to show AgentHomeScreen and restrict app-wide routing to standard user dashboard

This commit is contained in:
pradeepkumar
2026-04-30 14:18:56 +05:30
parent 004e3caa6e
commit c6b96e19dc
2 changed files with 6 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:real_estate_mobile/core/constants/app_colors.dart';
import 'package:real_estate_mobile/features/agents/presentation/screens/agent_edit_profile_screen.dart';
import 'package:real_estate_mobile/features/agents/presentation/screens/agent_home_screen.dart';
import 'package:real_estate_mobile/features/profile/presentation/providers/profile_provider.dart';
import 'package:real_estate_mobile/features/profile/presentation/widgets/profile_settings_tab.dart';
import 'package:real_estate_mobile/features/profile/presentation/widgets/change_password_tab.dart';
@@ -90,7 +90,7 @@ class _ProfileSettingsScreenState extends ConsumerState<ProfileSettingsScreen> {
final label = tabs[selectedTab].label;
switch (label) {
case 'Edit Profile':
return const AgentEditProfileScreen(embedded: true);
return const AgentHomeScreen();
case 'Profile Settings':
return const ProfileSettingsTab();
case 'Change Password':