mirror of
https://github.com/Uuttssaavv/flutter-clean-architecture-riverpod.git
synced 2025-08-26 02:10:45 +08:00
chore: fix spellings
This commit is contained in:
@ -36,7 +36,7 @@ class LoginUserRemoteDataSource implements LoginUserDataSource {
|
||||
} catch (e) {
|
||||
return Left(
|
||||
AppException(
|
||||
message: 'Unknown error occured',
|
||||
message: 'Unknown error occurred',
|
||||
statusCode: 1,
|
||||
identifier: '${e.toString()}\nLoginUserRemoteDataSource.loginUser',
|
||||
),
|
||||
|
@ -1,20 +1,20 @@
|
||||
import 'package:flutter_project/features/authentication/data/datasource/auth_remote_data_source.dart';
|
||||
import 'package:flutter_project/features/authentication/data/repositories/atuhentication_repository_impl.dart';
|
||||
import 'package:flutter_project/features/authentication/data/repositories/authentication_repository_impl.dart';
|
||||
import 'package:flutter_project/features/authentication/domain/repositories/auth_repository.dart';
|
||||
import 'package:flutter_project/shared/data/remote/remote.dart';
|
||||
import 'package:flutter_project/shared/domain/providers/dio_network_service_provider.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
final authdataSourceProvider =
|
||||
final authDataSourceProvider =
|
||||
Provider.family<LoginUserDataSource, NetworkService>(
|
||||
(_, networkService) => LoginUserRemoteDataSource(networkService),
|
||||
);
|
||||
|
||||
final authRepositoryProvider = Provider<AuthenticationRepository>(
|
||||
(ref) {
|
||||
final NetworkService networkService = ref.watch(netwokServiceProvider);
|
||||
final NetworkService networkService = ref.watch(networkServiceProvider);
|
||||
final LoginUserDataSource dataSource =
|
||||
ref.watch(authdataSourceProvider(networkService));
|
||||
ref.watch(authDataSourceProvider(networkService));
|
||||
return AuthenticationRepositoryImpl(dataSource);
|
||||
},
|
||||
);
|
||||
|
@ -11,9 +11,9 @@ final dashboardDatasourceProvider =
|
||||
);
|
||||
|
||||
final dashboardRepositoryProvider = Provider<DashboardRepository>((ref) {
|
||||
final networkService = ref.watch(netwokServiceProvider);
|
||||
final networkService = ref.watch(networkServiceProvider);
|
||||
final datasource = ref.watch(dashboardDatasourceProvider(networkService));
|
||||
final respository = DashboardRepositoryImpl(datasource);
|
||||
final repository = DashboardRepositoryImpl(datasource);
|
||||
|
||||
return respository;
|
||||
return repository;
|
||||
});
|
||||
|
Reference in New Issue
Block a user