Commit Graph

12 Commits

Author SHA1 Message Date
fd03d29e93 Avoided null value in network_exception.dart when calling fromResponse 2024-04-16 15:47:03 +03:00
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
2ae0c07830 Update import statements from relative tok apsulote paths. 2024-04-13 18:05:19 +03:00
8c80283f9c Update DefaultNavBar widget and ServerFailure class
Refactor DefaultNavBar widget to update page index on item tap.
Update ServerFailure class to handle 400 status code with list of errors.
2024-04-04 15:51:41 +03:00
a0c553f9ae Refactor ServerFailure class to use 'message' field from response
Update ServerFailure class to extract error message from 'message' field in
response data instead of converting the entire data to a string.
2024-04-04 14:53:58 +03:00
bff4b9493c Refactor device control logic and add temperature and fan speed enums
- Refactor device control logic in the app to improve readability and maintainability.
- Add temperature modes (hot, cold, wind) and fan speeds (auto, low, middle, high) enums.
- Update icon mappings and utility functions for temperature modes and fan speeds.
2024-04-03 18:54:21 +03:00
127d3a0295 Refactor code structure and update dependencies
Clean up code structure, remove unused imports, and update dependencies.
No functional changes made, only code organization improvements.
2024-04-03 01:55:50 +03:00
81625cd50e Add device icons based on device type and update network exception handling
- Add logic to set device icons based on device type in DeviceModel.fromJson method
- Update network exception handling to parse HTML response in ServerFailure class
- Add html package as a dependency for parsing HTML responses
-Added Devices Icons by updateing device types mapping
2024-04-02 15:11: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
0f3cc453ce Semi-implemented getting spaces feature 2024-03-12 11:14:31 +03:00
5a7787b42d Added Error handling 2024-03-10 08:56:06 +03:00
3190361901 initialized Application theme 2024-02-17 16:27:27 +03:00