get like tenders refactor services

This commit is contained in:
amirrezaghabeli
2025-09-08 10:48:05 +03:30
parent 3b6d049681
commit daba428d67
11 changed files with 72 additions and 66 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ class AppConfig {
// این متد بر اساس محیط فعال، URL مناسب را برمی‌گرداند.
static String get apiBaseUrl {
// return 'http://10.0.2.2:8081';
return 'http://10.0.2.2:8081';
// return '192.168.1.103:8081';
// if (isDevelopment) {
// // Handle different platforms for local development
// if (kIsWeb) {
// For web, use localhost
return 'https://app.opplens.com';
// return 'https://app.opplens.com';
// return 'http://localhost:8081';
// } else {
// For Android emulator, use 10.0.2.2 (special IP for host machine)
+4 -2
View File
@@ -64,8 +64,10 @@ List<SingleChildWidget> get repositories {
Provider(create: (context) => AuthRepository(authService: context.read())),
Provider(
create:
(context) =>
YourTendersRepository(yourTendersService: context.read()),
(context) => YourTendersRepository(
yourTendersService: context.read(),
likedTendersService: context.read(),
),
),
Provider(
create: