会话页面
This commit is contained in:
37
lib/constants/message_constant.dart
Normal file
37
lib/constants/message_constant.dart
Normal file
@@ -0,0 +1,37 @@
|
||||
class HistoryMessageDartConstant {
|
||||
static const getCount = 20;
|
||||
|
||||
// ignore: constant_identifier_names
|
||||
static const V2_TIM_IMAGE_TYPES = {
|
||||
'ORIGINAL': 0,
|
||||
'BIG': 1,
|
||||
'SMALL': 2,
|
||||
};
|
||||
|
||||
static Map<V2_TIM_IMAGE_TYPES_ENUM, List<String>> imgPriorMap = {
|
||||
V2_TIM_IMAGE_TYPES_ENUM.original: oriImgPrior,
|
||||
V2_TIM_IMAGE_TYPES_ENUM.big: bigImgPrior,
|
||||
V2_TIM_IMAGE_TYPES_ENUM.small: smallImgPrior,
|
||||
};
|
||||
|
||||
// 缩略图优先,大图次之,最后是原图
|
||||
static const smallImgPrior = ['ORIGINAL', 'BIG', 'SMALL'];
|
||||
// 大图优先,原图次之,最后是缩略图
|
||||
static const bigImgPrior = ['SMALL', 'ORIGINAL', 'BIG'];
|
||||
// 原图优先,大图次之,最后是缩略图
|
||||
static const oriImgPrior = ['SMALL', 'BIG', 'ORIGINAL'];
|
||||
|
||||
// 视频、音频已读状态
|
||||
static const int read = 1;
|
||||
}
|
||||
|
||||
enum V2_TIM_IMAGE_TYPES_ENUM {
|
||||
original,
|
||||
big,
|
||||
small,
|
||||
}
|
||||
|
||||
enum IMG_PREVIEW_TYPE {
|
||||
local,
|
||||
url,
|
||||
}
|
||||
Reference in New Issue
Block a user