connect with backend

This commit is contained in:
Abhishek Mali
2025-12-03 11:57:05 +05:30
parent c6b4c66c10
commit 3bf27cc29d
48 changed files with 2618 additions and 126 deletions

View File

@@ -1,4 +1,3 @@
class ApiConfig {
// Android emulator (use 10.0.2.2), change for physical device or iOS simulator
static const String baseUrl = "http://10.0.2.2:8000/api";
static const String baseUrl = "http://10.207.50.74:8000/api";
}

View File

@@ -0,0 +1,13 @@
class AppConfig {
// For Website & Browser (PC)
static const String logoUrlWeb = "http://127.0.0.1:8000/images/kent_logo2.png";
// For Android Emulator
static const String logoUrlEmulator = "http://10.0.2.2:8000/images/kent_logo2.png";
// For Physical Device (Replace with your actual PC local IP)
static const String logoUrlDevice = "http://10.207.50.74:8000/images/kent_logo2.png";
// Which one to use?
static const String logoUrl = logoUrlDevice; // CHANGE THIS WHEN TESTING ON REAL DEVICE
}