feat : segment page

This commit is contained in:
2025-07-15 09:03:11 +03:30
parent f79a3ae46f
commit b1496b1ed0
15 changed files with 63 additions and 63 deletions

View File

@@ -110,6 +110,11 @@ bool _isRetryableError(dynamic error) {
String _getErrorMessage(dynamic error) {
if (error is DioException) {
final responseData = error.response?.data;
if (responseData is Map<String, dynamic> && responseData['result'] != null) {
return responseData['result'].toString();
}
switch (error.type) {
case DioExceptionType.connectionTimeout:
return 'خطا در اتصال - زمان اتصال تمام شد';