Skip to content

Commit 21a7372

Browse files
committed
📝 Update sort path delegate description
1 parent 33d1ee8 commit 21a7372

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README-ZH.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,12 @@ FAILURE: Build failed with an exception.
270270
但是 `AssetPathEntity` 的名字或属性只能通过 `SortPathDelegate` 进行更改。
271271
这是你能访问到所有 `AssetPathEntity` 的唯一方法,或者说,是现阶段我们暴露出来的唯一方法。
272272

273-
若需要更改某一个路径的名字,继承 `SortPathDelegate` 并实现你自己的构建,接着像如下代码一样进行编写:
273+
若需要更改某一个路径的名字,继承 `CommonSortPathDelegate` 并实现你自己的构建,
274+
接着像如下代码一样进行编写:
274275

275276
```dart
276277
/// 构建你自己的排序
277-
class CustomSortPathDelegate extends SortPathDelegate {
278+
class CustomSortPathDelegate extends CommonSortPathDelegate {
278279
const CustomSortPathDelegate();
279280
280281
@override

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,15 @@ includes all `AssetEntity` on your device.
265265
"Recent" is a system named entity in most platforms.
266266
While we provided ability to customize the text delegate,
267267
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.
269270

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,
271272
then write something like the code below:
272273

273274
```dart
274275
/// Create your own sort path delegate.
275-
class CustomSortPathDelegate extends SortPathDelegate {
276+
class CustomSortPathDelegate extends CommonSortPathDelegate {
276277
const CustomSortPathDelegate();
277278
278279
@override

0 commit comments

Comments
 (0)