first app design
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import 'dart:io';
|
||||
|
||||
class AppConstants {
|
||||
// Android emulator routes localhost as 10.0.2.2; iOS simulator uses localhost fine
|
||||
static String get baseUrl => Platform.isAndroid
|
||||
? 'http://10.0.2.2:4000/api/v1'
|
||||
: 'http://localhost:4000/api/v1';
|
||||
|
||||
static const String tokenKey = 'auth_token';
|
||||
static const String userTypeKey = 'user_type';
|
||||
|
||||
static const String userTypeEmployee = 'employee';
|
||||
static const String userTypeRenter = 'renter';
|
||||
}
|
||||
Reference in New Issue
Block a user