Add Profile screen with name, title, company, phone, signature settings

This commit is contained in:
2026-01-27 22:59:25 +00:00
parent 99f0983446
commit 25733fe90b
4 changed files with 280 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ import '../features/clients/presentation/client_form_screen.dart';
import '../features/emails/presentation/emails_screen.dart';
import '../features/emails/presentation/email_compose_screen.dart';
import '../features/events/presentation/events_screen.dart';
import '../features/profile/presentation/profile_screen.dart';
import '../shared/providers/auth_provider.dart';
final routerProvider = Provider<GoRouter>((ref) {
@@ -81,6 +82,10 @@ final routerProvider = Provider<GoRouter>((ref) {
path: '/events',
builder: (context, state) => const EventsScreen(),
),
GoRoute(
path: '/profile',
builder: (context, state) => const ProfileScreen(),
),
],
),
],
@@ -115,6 +120,11 @@ class MainShell extends StatelessWidget {
selectedIcon: Icon(Icons.event),
label: 'Events',
),
NavigationDestination(
icon: Icon(Icons.person_outline),
selectedIcon: Icon(Icons.person),
label: 'Profile',
),
],
),
);
@@ -124,6 +134,7 @@ class MainShell extends StatelessWidget {
final location = GoRouterState.of(context).matchedLocation;
if (location.startsWith('/emails')) return 1;
if (location.startsWith('/events')) return 2;
if (location.startsWith('/profile')) return 3;
return 0;
}
@@ -138,6 +149,9 @@ class MainShell extends StatelessWidget {
case 2:
context.go('/events');
break;
case 3:
context.go('/profile');
break;
}
}
}