Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何修复动画以处理flifter中一个小部件中的文本替换?_Flutter_Flutter Animation_Flutter Text - Fatal编程技术网

Flutter 如何修复动画以处理flifter中一个小部件中的文本替换?

Flutter 如何修复动画以处理flifter中一个小部件中的文本替换?,flutter,flutter-animation,flutter-text,Flutter,Flutter Animation,Flutter Text,我有一个flatter页面,可以在点击按钮时更改文本,我希望文本在小部件中显示时能够动画化,我从animatedtexkit flatter包中应用了TypeRanimatedtexkit,如下所示: TyperAnimatedTextKit( isRepeatingAnimation: true, duration: Duration(seconds: 1),

我有一个flatter页面,可以在点击按钮时更改文本,我希望文本在小部件中显示时能够动画化,我从animatedtexkit flatter包中应用了TypeRanimatedtexkit,如下所示:

TyperAnimatedTextKit(
                          isRepeatingAnimation: true,
                          duration: Duration(seconds: 1),
                          text: <String>[
                            pageContent(_page, bookID),
                          ],
                          textStyle: TextStyle(fontSize: 16),
                          textAlign: TextAlign.center,
                        ),
TyperAnimatedTextKit(
isRepeatingAnimation:没错,
持续时间:持续时间(秒数:1),
正文:[
页面内容(_页面,bookID),
],
textStyle:textStyle(字体大小:16),
textAlign:textAlign.center,
),
我有一个问题,动画在同一个文本上不断重复,当我将重复功能更改为false时,动画将仅应用于第一个文本,其他文本将叠加在第一个文本上,有人知道如何解决这个问题吗