15 Commits
Author SHA1 Message Date
mohammad 7a22bb4bc8 count_down_ac 2025-01-08 17:17:52 +03:00
Abdullah Alassaf 5f1c4c5371 Updated the error response body 2024-10-10 13:05:48 +03:00
Abdullah Alassaf 76f5c6d325 bug fixes and read sensors states 2024-06-06 11:14:25 +03:00
Mohammad Salameh fd03d29e93 Avoided null value in network_exception.dart when calling fromResponse 2024-04-16 15:47:03 +03:00
Mohammad Salameh 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
Mohammad Salameh 2ae0c07830 Update import statements from relative tok apsulote paths. 2024-04-13 18:05:19 +03:00
Mohammad Salameh 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
Mohammad Salameh 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
Mohammad Salameh 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
Mohammad Salameh 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
Mohammad Salameh 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
Mohammad Salameh 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
Mohammad Salameh 0f3cc453ce Semi-implemented getting spaces feature 2024-03-12 11:14:31 +03:00
Mohammad Salameh 5a7787b42d Added Error handling 2024-03-10 08:56:06 +03:00
Mohammad Salameh 3190361901 initialized Application theme 2024-02-17 16:27:27 +03:00