Add board service and repository, update routes and assets
- Introduced BoardService and BoardRepository for managing board-related data. - Updated app routes to reflect the new board screen structure. - Added new board-related assets to the asset manager. - Refactored BoardScreen navigation to utilize the new provider structure.
This commit is contained in:
@@ -19,8 +19,10 @@ import 'package:tm_app/data/services/your_tenders_service.dart';
|
||||
import 'package:tm_app/view_models/final_completion_of_documents_view_model.dart';
|
||||
|
||||
import '../../data/repositories/auth_repository.dart';
|
||||
import '../../data/repositories/board_repositories.dart';
|
||||
import '../../data/repositories/profile_repository.dart';
|
||||
import '../../data/services/auth_service.dart';
|
||||
import '../../data/services/board_service.dart';
|
||||
import '../../data/services/profile_service.dart';
|
||||
import '../../data/services/tenders_service.dart';
|
||||
import '../../view_models/auth_view_model.dart';
|
||||
@@ -86,6 +88,10 @@ List<SingleChildWidget> get apiClients {
|
||||
create: (context) => NotificationsService(networkManager: context.read()),
|
||||
lazy: true,
|
||||
),
|
||||
Provider(
|
||||
create: (context) => BoardService(networkManager: context.read()),
|
||||
lazy: true,
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -137,6 +143,10 @@ List<SingleChildWidget> get repositories {
|
||||
NotificationsRepository(notificationsService: context.read()),
|
||||
lazy: true,
|
||||
),
|
||||
Provider(
|
||||
create: (context) => BoardRepository(boardService: context.read()),
|
||||
lazy: true,
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user