Commit Graph

24 Commits

Author SHA1 Message Date
cfc395e210 Refactor HTTPInterceptor and add CustomSnackBar helper
Refactor HTTPInterceptor to handle error responses and add a CustomSnackBar
helper to display snack bars. This will improve error handling and user
feedback in the application.
2024-04-15 12:02:34 +03:00
9cc479ba17 Refactor email and password validation logic in LoginForm widget
Update email and password validation logic in the LoginForm widget to only
perform validation when the state is not AuthTokenError. This ensures that
validation is skipped when there is an authentication token error.
2024-04-02 18:09:23 +03:00
e17c0af144 Add HomeCubit and HomeState classes
This commit adds the HomeCubit class along with its corresponding HomeState
class. It also includes necessary imports and updates references to the
previously used SpacesCubit to the new HomeCubit in various files.
handled the multible onCreate -- HomeCubit
2024-03-24 14:43:13 +03:00
c0bfd24751 Refactor device-related views and add error handling
Refactor device-related views to improve code structure and readability.
Add error handling for authentication token in the splash view.
Remove unnecessary NavCubit from the app initialization.
2024-03-21 13:58:20 +03:00
d4a9cfb7ab Refactor error handling in AuthCubit and ServerFailure
Update error handling in AuthCubit to use toString() method and mdified
handling of badResponse in ServerFailure class.
2024-03-19 15:13:00 +03:00
3cbc3d7fa9 Add autovalidate mode to LoginForm
Set autovalidate mode to onUserInteraction in the LoginForm widget to improve
user experience.
2024-03-19 14:58:33 +03:00
42051bb977 Fixed the overflow in the login screen, the page is scrollable.
- Fixed Scrolling wasent working in login screen
- Changed Home page to indexed based view instead of PageView
2024-03-19 13:29:12 +03:00
79279180df Refactor code for better readability and maintainability
- Add method to get token and validate in AuthCubit
- Update AuthState with loading, success, and error states for token
- Use BlocBuilder in SplashView for token validation and navigation

This commit refactors the code in AuthCubit to include a method to get the token and validate it. It also updates the AuthState with loading, success, and error states for token handling. In SplashView, BlocBuilder is now used to handle token validation and navigation based on the token status.
2024-03-19 11:15:45 +03:00
024f15728b getting spaces and rooms from api {null checks} 2024-03-13 13:52:22 +03:00
0f3cc453ce Semi-implemented getting spaces feature 2024-03-12 11:14:31 +03:00
d3bd10730c Modified Devices Pages 2024-03-11 12:04:26 +03:00
c03b2b248d Fixed navigation bug 2024-03-10 15:57:43 +03:00
37187acdf4 Merged Auth branch & Curtains branch 2024-03-10 15:09:06 +03:00
a6018b282e Redesigned Splash Screen and Login Screen 2024-03-10 14:49:17 +03:00
ce34933738 Added loading and success icons to login button 2024-03-10 10:58:45 +03:00
2c4543e83f Added Login with email model instead of json encode 2024-03-10 10:20:06 +03:00
5a7787b42d Added Error handling 2024-03-10 08:56:06 +03:00
d70c370c2e Added form validation for login view 2024-03-07 15:33:14 +03:00
f734801e94 Initialized Auth pages for future work
Implemented Login functionality
2024-03-07 10:29:19 +03:00
643b206d4c cleaned some warring messages 2024-03-03 13:10:03 +03:00
481fe1c0f3 replaced Gap Class with the appropriate SizedBox
removed the Gap dependency
2024-03-02 15:52:28 +03:00
3190361901 initialized Application theme 2024-02-17 16:27:27 +03:00
16f47f744c initialized Splash UI
initialized Login UI
initialized Home(no Devices) UI
Added Colors (from syncrow website)
Added Logo
2024-02-15 00:10:33 +03:00
84e142a099 initial commit 2024-02-14 10:58:43 +03:00