get like tenders refactor services
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user