Mohammad Salameh
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
Mohammad Salameh
65cbf10485
temp
2024-03-17 09:38:26 +03:00
Mohammad Salameh
f11b6d8d32
Added page swipe for navigation
2024-03-10 16:57:12 +03:00
Mohammad Salameh
f8e8591d13
Implemented room device interface
...
(AC only)
2024-03-07 14:53:13 +03:00
Mohammad Salameh
5a9c96b0a8
Built Curtains List view
...
Modified Category Model(default value of devices status is now null)
Added a category getter in each devices cubit ( AcCubit, LightsCubit ...)
2024-03-05 12:36:57 +03:00
Mohammad Salameh
a9fdb2fc76
modified UI padding handling approach
...
added auth API endpoints
initialized curtains view for further development
2024-03-05 11:18:08 +03:00
Mohammad Salameh
33b7149dde
fixed padding bug
...
fixed AC interface routing issue
2024-03-04 17:10:34 +03:00
Mohammad Salameh
d9a3f9e2a0
code refactoring
2024-03-03 19:07:24 +03:00
Mohammad Salameh
ad511fe3af
added smooth_page_indicator for devices view body
2024-03-03 17:01:08 +03:00
Mohammad Salameh
24ccb243d4
fixed Universal AC temperature control
2024-03-03 16:17:00 +03:00
Mohammad Salameh
136987c56a
built Lights List
2024-03-03 13:05:34 +03:00
Mohammad Salameh
7e98329738
added Null state from the AC universal switch (in case the status for the ACs are different from each other)
2024-03-03 11:37:30 +03:00
Mohammad Salameh
bcaed7a4b8
Converted all the devices models to extends from DeviceModel for the purpose of unifying.
...
Initialized Lights feature.
2024-03-02 21:57:11 +03:00
Mohammad Salameh
481fe1c0f3
replaced Gap Class with the appropriate SizedBox
...
removed the Gap dependency
2024-03-02 15:52:28 +03:00
Mohammad Salameh
4ee5426e9c
Implemented AC Interface
2024-02-29 12:11:39 +03:00
Mohammad Salameh
3fabd41e72
Stabilized UI elements across multiple devices
...
Synchronized ACs Status functionality
2024-02-28 12:22:45 +03:00
Mohammad Salameh
4c27cce519
Switches updated
2024-02-27 10:13:58 +03:00