dreampad/lib/app/shared/constants/constants.dart

43 lines
1.3 KiB
Dart
Raw Normal View History

2023-11-28 10:44:58 +08:00
import 'package:flutter/foundation.dart';
export 'colors.dart';
export 'gaps.dart';
export 'styles.dart';
export 'images.dart';
class Constant {
/// App运行在Release环境时inProduction为true当App运行在Debug和Profile环境时inProduction为false
static const bool inProduction = kReleaseMode;
static bool isDriverTest = false;
static bool isUnitTest = false;
static const String keyGuide = 'keyGuide';
static const String theme = 'AppTheme';
static const String locale = 'locale';
static const String data = 'data';
static const String message = 'message';
static const String code = 'code';
static const String account = 'account';
static const String password = 'password';
static const String accessToken = 'accessToken';
static const String refreshToken = 'refreshToken';
static const String expiresIn = 'expiresIn';
static const String tokenDateTime = 'tokenDateTime';
static const String avatarUrl = 'avatarUrl';
static const String userId = 'userId';
static const String imgDir = 'image';
static const String dbDir = 'db';
static const String create = 'create';
static const String gender = 'gender';
static const String age = 'age';
static const String occupationId = 'occupationId';
static const String occupationName = 'occupationName';
}