Приложение на флаторе, настройки
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
class AppConstants {
|
||||
AppConstants._();
|
||||
|
||||
// API
|
||||
static const String apiBaseUrl = 'https://api.messenger.app';
|
||||
static const int apiTimeout = 30;
|
||||
|
||||
// Storage
|
||||
static const String sharedPrefsName = 'messenger_prefs';
|
||||
static const String tokenKey = 'auth_token';
|
||||
static const String refreshTokenKey = 'refresh_token';
|
||||
static const String userIdKey = 'user_id';
|
||||
|
||||
// Pagination
|
||||
static const int pageSize = 20;
|
||||
static const int defaultPageSize = 50;
|
||||
|
||||
// Chat
|
||||
static const int maxMessageLength = 4096;
|
||||
static const int typingIndicatorTimeout = 3000;
|
||||
|
||||
// Media
|
||||
static const int maxImageSize = 10 * 1024 * 1024; // 10MB
|
||||
static const int maxVideoSize = 100 * 1024 * 1024; // 100MB
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class StorageKeys {
|
||||
StorageKeys._();
|
||||
|
||||
static const String apiUrl = 'api_url';
|
||||
static const String languageCode = 'language_code';
|
||||
static const String serverConfig = 'server_config';
|
||||
static const String authToken = 'auth_token';
|
||||
static const String refreshToken = 'refresh_token';
|
||||
}
|
||||
Reference in New Issue
Block a user