feat: agregar pantalla de gestión de direcciones y navegación
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../../features/auth/presentation/bloc/auth_bloc.dart';
|
||||
import '../../features/auth/presentation/bloc/auth_state.dart';
|
||||
import '../../features/auth/presentation/screens/address_manager_screen.dart';
|
||||
import '../../features/auth/presentation/screens/login_screen.dart';
|
||||
import '../../features/auth/presentation/screens/register_screen.dart';
|
||||
import '../../features/auth/presentation/screens/home_screen_placeholder.dart';
|
||||
@@ -14,6 +15,7 @@ abstract final class AppRoutes {
|
||||
static const String login = '/login';
|
||||
static const String register = '/register';
|
||||
static const String home = '/home';
|
||||
static const String addresses = '/addresses';
|
||||
}
|
||||
|
||||
/// Configuración central de navegación con go_router.
|
||||
@@ -72,6 +74,10 @@ GoRouter createRouter(AuthBloc authBloc) {
|
||||
path: AppRoutes.home,
|
||||
builder: (context, state) => const HomeScreenPlaceholder(),
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.addresses,
|
||||
builder: (context, state) => const AddressManagerScreen(),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user