feat(Issue-446): start screen profileScreen -> feedScreen

This commit is contained in:
mso7nueh
2025-05-16 15:17:18 +03:00
parent b1516d6062
commit 083feec4ef
5 changed files with 5 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -30,7 +30,7 @@ class AuthCubit extends Cubit<AuthState> {
);
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());

View File

@@ -27,7 +27,7 @@ class BottomNavigationBarWidget extends StatefulWidget {
}
class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
int currentBottomNavBarIndex = 0;
int currentBottomNavBarIndex = 1;
late final List<String> pages;
@override

View File

@@ -57,7 +57,7 @@ class RegistrationCubit extends Cubit<RegistrationState> {
),
);
await TokenStorage.saveTokenInStorage(token);
AppRouter.navigatorKey.currentContext?.go('/my-profile-screen');
AppRouter.navigatorKey.currentContext?.go('/feed-screen');
} catch (e) {
log(e.toString());
}

View File

@@ -80,7 +80,7 @@ class _WelcomeScreenState extends State<WelcomeScreen> {
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(