File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -270,11 +270,12 @@ FAILURE: Build failed with an exception.
270
270
但是 ` AssetPathEntity ` 的名字或属性只能通过 ` SortPathDelegate ` 进行更改。
271
271
这是你能访问到所有 ` AssetPathEntity ` 的唯一方法,或者说,是现阶段我们暴露出来的唯一方法。
272
272
273
- 若需要更改某一个路径的名字,继承 ` SortPathDelegate ` 并实现你自己的构建,接着像如下代码一样进行编写:
273
+ 若需要更改某一个路径的名字,继承 ` CommonSortPathDelegate ` 并实现你自己的构建,
274
+ 接着像如下代码一样进行编写:
274
275
275
276
``` dart
276
277
/// 构建你自己的排序
277
- class CustomSortPathDelegate extends SortPathDelegate {
278
+ class CustomSortPathDelegate extends CommonSortPathDelegate {
278
279
const CustomSortPathDelegate();
279
280
280
281
@override
Original file line number Diff line number Diff line change @@ -265,14 +265,15 @@ includes all `AssetEntity` on your device.
265
265
"Recent" is a system named entity in most platforms.
266
266
While we provided ability to customize the text delegate,
267
267
the name/properties can only be updated with ` SortPathDelegate ` .
268
- This is the only way that you have access to all path entities, or the only way that we exposed currently.
268
+ This is the only way that you have access to all path entities,
269
+ or the only way that we exposed currently.
269
270
270
- To change the name of the path entity, extend the ` SortPathDelegate ` with your own delegate,
271
+ To change the name of the path entity, extend the ` CommonSortPathDelegate ` with your own delegate,
271
272
then write something like the code below:
272
273
273
274
``` dart
274
275
/// Create your own sort path delegate.
275
- class CustomSortPathDelegate extends SortPathDelegate {
276
+ class CustomSortPathDelegate extends CommonSortPathDelegate {
276
277
const CustomSortPathDelegate();
277
278
278
279
@override
You can’t perform that action at this time.
0 commit comments