Browse Source

Update 'README.md'

天问 8 months ago
parent
commit
f399b12d25
1 changed files with 25 additions and 1 deletions
  1. 25 1
      README.md

+ 25 - 1
README.md

@@ -1,3 +1,27 @@
 # animated_text_kit
 # animated_text_kit
 
 
-打字机效果,chatgpt 模拟流数据
+打字机效果,chatgpt 模拟流数据
+
+
+## Usage
+
+```
+#导入包:
+  animated_text_kit: ^4.2.2
+#导入:
+import 'package:animated_text_kit/animated_text_kit.dart';
+
+AnimatedTextKit(
+  isRepeatingAnimation: false,
+  repeatForever: false,
+  displayFullTextOnTap: true,
+  totalRepeatCount: 1,
+  animatedTexts: [
+    TyperAnimatedText(
+      msg.trim(),
+    ),
+  ]),
+
+```
+其中 msg 为数据。
+