connect with backend
This commit is contained in:
13
lib/config/app_config.dart
Normal file
13
lib/config/app_config.dart
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user