Skip to content

Commit eda9e41

Browse files
authored
Update Chinese README (singerdmx#1277)
1 parent 70dfc6e commit eda9e41

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc_cn.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,22 @@ QuillEditor(locale: Locale('fr'), ...)
404404

405405
其是流行且成熟的 [quill-delta-to-html](https://www.npmjs.com/package/quill-delta-to-html) `Typescript/Javascript` 包的 `Dart` 部分
406406

407+
## 测试
408+
409+
为了能在测试文件里测试编辑器,我们给 flutter `WidgetTester` 提供了一个扩展,其中包括在测试文件中简化与编辑器交互的方法。
410+
411+
在测试文件内导入测试工具:
412+
413+
```dart
414+
import 'package:flutter_quill/flutter_quill_test.dart';
415+
```
416+
417+
然后使用 `quillEnterText` 输入文字:
418+
419+
```dart
420+
await tester.quillEnterText(find.byType(QuillEditor), 'test\n');
421+
```
422+
407423
---
408424

409425
## 赞助

0 commit comments

Comments
 (0)