From 6a9d68e9452ae3ea7f24d6703c7c7074900beab4 Mon Sep 17 00:00:00 2001 From: aitorarana Date: Thu, 18 Dec 2025 16:46:42 +0100 Subject: [PATCH] clean warnings --- .../data/datasource/auth_remote_datasource_impl.dart | 12 ++++++------ .../new_password/new_password_screen.dart | 2 +- .../state/recover_password_view_model.dart | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/auth/lib/src/core/data/datasource/auth_remote_datasource_impl.dart b/modules/auth/lib/src/core/data/datasource/auth_remote_datasource_impl.dart index 6cffc665..331a1dd1 100644 --- a/modules/auth/lib/src/core/data/datasource/auth_remote_datasource_impl.dart +++ b/modules/auth/lib/src/core/data/datasource/auth_remote_datasource_impl.dart @@ -64,21 +64,21 @@ class AuthRemoteDatasourceImpl implements AuthRemoteDatasource { throw FormatException("No phone or email address given"); } - late final Map body; + // late final Map body; if (email != null) { - body = {'email': email}; + // body = {'email': email}; return 'ec14b7e7-58dd-4a59-9f41-0da86eaabf14'; } else { - body = {'phone': phone!}; + // body = {'phone': phone!}; return 'ec14b7e7-58dd-4a59-9f41-0da86eaabf14'; - throw Exception("reset by phone is not currently implemented"); + // throw Exception("reset by phone is not currently implemented"); } - final response = await _repository.put>( + /*final response = await _repository.put>( '/auth/reset-password', body: body, ); final token = response.data!['token']; - return token; + return token;*/ } on DioException catch (error) { throw _mapDioError(error, defaultMessage: 'Error to request password reset'); } diff --git a/modules/auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart b/modules/auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart index 070ac3d3..ca9ffc35 100644 --- a/modules/auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart +++ b/modules/auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart @@ -10,7 +10,7 @@ import 'package:utils/utils.dart'; class NewPasswordScreen extends ConsumerWidget { final NavigationContract navigationContract; - const NewPasswordScreen({required this.navigationContract}); + const NewPasswordScreen({super.key, required this.navigationContract}); @override Widget build(BuildContext context, WidgetRef ref) { diff --git a/modules/auth/lib/src/features/recover_password/presentation/state/recover_password_view_model.dart b/modules/auth/lib/src/features/recover_password/presentation/state/recover_password_view_model.dart index ad93dd8d..2fd912c7 100644 --- a/modules/auth/lib/src/features/recover_password/presentation/state/recover_password_view_model.dart +++ b/modules/auth/lib/src/features/recover_password/presentation/state/recover_password_view_model.dart @@ -201,7 +201,7 @@ class RecoverPasswordViewModel extends Notifier { } Future recoverPassword() async { - final String fullPhone = state.newDialCode + state.newPhoneNumber; + //final String fullPhone = state.newDialCode + state.newPhoneNumber; final String password = state.password; if (!state.equalPasswords) {