feat: new date picker and new logic

This commit is contained in:
2025-11-02 15:45:31 +03:30
parent 627497a840
commit 858fb48f68
13 changed files with 1090 additions and 247 deletions

View File

@@ -67,7 +67,7 @@ Future<T?> gSafeCall<T>({
if (error is DioException && error.response?.statusCode == 401) {
if (showError) {
(onShowErrorMessage ?? _defaultShowErrorMessage)('خطا در احراز هویت');
(onShowErrorMessage ?? defaultShowErrorMessage)('خطا در احراز هویت');
}
onError?.call(error, stackTrace);
return null;
@@ -76,7 +76,7 @@ Future<T?> gSafeCall<T>({
if (retryCount > maxRetries || !_isRetryableError(error)) {
if (showError) {
final message = _getErrorMessage(error);
(onShowErrorMessage ?? _defaultShowErrorMessage)(message);
(onShowErrorMessage ?? defaultShowErrorMessage)(message);
}
onError?.call(error, stackTrace);
return null;
@@ -171,7 +171,7 @@ void defaultShowSuccessMessage(
);
}
void _defaultShowErrorMessage(String message) {
void defaultShowErrorMessage(String message) {
Get.snackbar(
'خطا',
message,