enums.dart
1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2019 The FlutterCandies author. All rights reserved.
// Use of this source code is governed by an Apache license that can be found
// in the LICENSE file.
/// Provide some special picker types to integrate
/// un-common pick pattern.
/// 提供一些特殊的选择器类型以整合非常规的选择行为。
enum SpecialPickerType {
/// WeChat Moments mode.
/// 微信朋友圈模式
///
/// The user can only select *one video* or *multiple images* at the same time,
/// and those two asset types cannot be selected at the same time.
/// 用户只可以选择 **一个视频** 或 **多个图片**,并且两种类型互斥。
wechatMoment,
/// Disable preview of assets.
/// 禁用资源预览
///
/// There is no preview mode when clicking grid items.
/// In multiple select mode, any click (either on the select indicator or on
/// the asset itself) will select the asset.
/// In single select mode, any click directly selects the asset and returns.
/// 用户在点击网格的 item 时无法进入预览。
/// 在多选模式下无论点击选择指示还是 item 都将触发选择,
/// 而在单选模式下将直接返回点击的资源。
noPreview,
}
/// Provide an item slot for custom widget insertion.
/// 提供一个自定义位置供特殊item放入资源列表中。
enum SpecialItemPosition {
/// Not insert to the list.
/// 不放入列表
none,
/// Add as leading of the list.
/// 在列表前放入
prepend,
/// Add as trailing of the list.
/// 在列表后放入
append,
}