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:
amirrezaghabeli
2025-10-27 13:22:51 +03:30
parent b801d75f99
commit de659ca9cf
11 changed files with 599 additions and 138 deletions
+1
View File
@@ -81,4 +81,5 @@ class AssetsManager {
static const arrowDown = 'assets/icons/arrow-down.svg';
static const arrowUp = 'assets/icons/arrow-up.svg';
static const uploadFile = 'assets/icons/upload_file.svg';
static const clock = 'assets/icons/clock.svg';
}
+8
View File
@@ -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;
},
);