From 8692757da73298fbbf5ef1e736b38d326d8f22aa Mon Sep 17 00:00:00 2001 From: PetrovY Date: Wed, 28 May 2025 16:39:56 +0300 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=D0=A4=D0=BE=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_services/i_app_services/lib/src/i_secure_storage.dart | 4 +--- lib/features/auth/data/repository/auth_repository.dart | 1 - lib/features/main/data/repository/main_repository.dart | 1 - lib/features/profile/data/repository/profile_repository.dart | 1 - lib/features/profile/domain/bloc/profile_event.dart | 1 - lib/features/profile/domain/bloc/profile_state.dart | 2 -- 6 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app_services/i_app_services/lib/src/i_secure_storage.dart b/app_services/i_app_services/lib/src/i_secure_storage.dart index 9ed43a1..9e7bb03 100644 --- a/app_services/i_app_services/lib/src/i_secure_storage.dart +++ b/app_services/i_app_services/lib/src/i_secure_storage.dart @@ -4,9 +4,7 @@ abstract interface class ISecureStorage { /// /// Требует: /// - [secretKey] - секретный ключ для шифрования данных - const ISecureStorage._({ - required this.secretKey, - }); + const ISecureStorage._({required this.secretKey}); /// Секретный ключ для шифрования данных /// Нужен, если надо передать ключ в реализацию diff --git a/lib/features/auth/data/repository/auth_repository.dart b/lib/features/auth/data/repository/auth_repository.dart index dcdc3cf..5ee45ef 100644 --- a/lib/features/auth/data/repository/auth_repository.dart +++ b/lib/features/auth/data/repository/auth_repository.dart @@ -6,7 +6,6 @@ import 'package:friflex_starter/features/auth/domain/repository/i_auth_repositor /// Реализация репозитория авторизации /// {@endtemplate} final class AuthRepository implements IAuthRepository { - AuthRepository({required this.httpClient}); final IHttpClient httpClient; diff --git a/lib/features/main/data/repository/main_repository.dart b/lib/features/main/data/repository/main_repository.dart index 10d35e7..5be3b6c 100644 --- a/lib/features/main/data/repository/main_repository.dart +++ b/lib/features/main/data/repository/main_repository.dart @@ -6,7 +6,6 @@ import 'package:friflex_starter/features/main/domain/repository/i_main_repositor /// /// {@endtemplate} final class MainRepository implements IMainRepository { - MainRepository({required this.httpClient}); final IHttpClient httpClient; diff --git a/lib/features/profile/data/repository/profile_repository.dart b/lib/features/profile/data/repository/profile_repository.dart index 388c798..a3700af 100644 --- a/lib/features/profile/data/repository/profile_repository.dart +++ b/lib/features/profile/data/repository/profile_repository.dart @@ -6,7 +6,6 @@ import 'package:friflex_starter/features/profile/domain/repository/i_profile_rep /// /// {@endtemplate} final class ProfileRepository implements IProfileRepository { - ProfileRepository({required this.httpClient}); final IHttpClient httpClient; diff --git a/lib/features/profile/domain/bloc/profile_event.dart b/lib/features/profile/domain/bloc/profile_event.dart index f58668e..69c50c8 100644 --- a/lib/features/profile/domain/bloc/profile_event.dart +++ b/lib/features/profile/domain/bloc/profile_event.dart @@ -8,7 +8,6 @@ sealed class ProfileEvent extends Equatable { } final class ProfileFetchProfileEvent extends ProfileEvent { - const ProfileFetchProfileEvent({required this.id}); final String id; diff --git a/lib/features/profile/domain/bloc/profile_state.dart b/lib/features/profile/domain/bloc/profile_state.dart index 4cd4808..66b810e 100644 --- a/lib/features/profile/domain/bloc/profile_state.dart +++ b/lib/features/profile/domain/bloc/profile_state.dart @@ -12,7 +12,6 @@ final class ProfileInitialState extends ProfileState {} final class ProfileWaitingState extends ProfileState {} final class ProfileErrorState extends ProfileState { - const ProfileErrorState({ required this.message, required this.error, @@ -27,7 +26,6 @@ final class ProfileErrorState extends ProfileState { } final class ProfileSuccessState extends ProfileState { - const ProfileSuccessState({required this.data}); final Object data;