Add clock asset and enhance meeting time dialogs
- Added a new clock icon asset to the AssetsManager. - Updated MeetingTimeBottomSheet and MeetingTimeDialog to include a close button for better user experience. - Introduced MeetingTimeSuccessfulRegisteredBottomSheet and MeetingTimeSuccessfulRegisteredDialog for confirming meeting time registration. - Refactored submission dialogs to improve layout and interaction consistency.
This commit is contained in:
@@ -58,9 +58,17 @@ final GoRouter appRouter = GoRouter(
|
||||
path.startsWith('/forgot-password') ||
|
||||
location.startsWith('/forgot-password');
|
||||
final isPublic = isSplash || isLogin || isForgotFlow;
|
||||
|
||||
// If user has token and tries to access login page, redirect to home
|
||||
if (hasToken && isLogin) {
|
||||
return '/home';
|
||||
}
|
||||
|
||||
// If user doesn't have token and tries to access protected routes, redirect to splash
|
||||
if (!hasToken && !isPublic) {
|
||||
return '/splash';
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user