diff --git a/lib/core/app_router.dart b/lib/core/app_router.dart index 63ec1094..1803c603 100644 --- a/lib/core/app_router.dart +++ b/lib/core/app_router.dart @@ -138,7 +138,7 @@ class AppRouter { final sharedPreferences = await SharedPreferences.getInstance(); final welcomeScreenWasShowed = sharedPreferences.getBool('welcomeScreenWasShowed'); if (welcomeScreenWasShowed == true) { - return '/my-profile-screen'; + return '/feed-screen'; } else { return null; } diff --git a/lib/features/auth/presentation/bloc/auth_cubit.dart b/lib/features/auth/presentation/bloc/auth_cubit.dart index f96f0261..03d3c896 100644 --- a/lib/features/auth/presentation/bloc/auth_cubit.dart +++ b/lib/features/auth/presentation/bloc/auth_cubit.dart @@ -30,7 +30,7 @@ class AuthCubit extends Cubit { ); showSuccessToast('Успешный вход'); await TokenStorage.saveTokenInStorage(token); - AppRouter.navigatorKey.currentContext?.go('/my-profile-screen'); + AppRouter.navigatorKey.currentContext?.go('/feed-screen'); return true; } catch (e) { log(e.toString()); diff --git a/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart b/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart index c0b5e16a..52b9b838 100644 --- a/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart +++ b/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart @@ -27,7 +27,7 @@ class BottomNavigationBarWidget extends StatefulWidget { } class _BottomNavigationBarWidgetState extends State { - int currentBottomNavBarIndex = 0; + int currentBottomNavBarIndex = 1; late final List pages; @override diff --git a/lib/features/registration/presentation/bloc/registration_cubit/registration_cubit.dart b/lib/features/registration/presentation/bloc/registration_cubit/registration_cubit.dart index 9a1cb16d..33688c9c 100644 --- a/lib/features/registration/presentation/bloc/registration_cubit/registration_cubit.dart +++ b/lib/features/registration/presentation/bloc/registration_cubit/registration_cubit.dart @@ -57,7 +57,7 @@ class RegistrationCubit extends Cubit { ), ); await TokenStorage.saveTokenInStorage(token); - AppRouter.navigatorKey.currentContext?.go('/my-profile-screen'); + AppRouter.navigatorKey.currentContext?.go('/feed-screen'); } catch (e) { log(e.toString()); } diff --git a/lib/features/welcome/presentation/pages/welcome_screen.dart b/lib/features/welcome/presentation/pages/welcome_screen.dart index b36e9233..70a5904e 100644 --- a/lib/features/welcome/presentation/pages/welcome_screen.dart +++ b/lib/features/welcome/presentation/pages/welcome_screen.dart @@ -80,7 +80,7 @@ class _WelcomeScreenState extends State { onTap: () async { final sharedPreferences = await SharedPreferences.getInstance(); await sharedPreferences.setBool('welcomeScreenWasShowed', true); - goRouter.go('/my-profile-screen'); + goRouter.go('/feed-screen'); }, borderRadius: BorderRadius.circular(8), child: Ink(