【发布时间】:2021-08-10 16:57:34
【问题描述】:
我希望 Flutter 框架在 Lottie 动画结束时向用户显示一个按钮 Like the image below that appears after the end of the button animation
【问题讨论】:
我希望 Flutter 框架在 Lottie 动画结束时向用户显示一个按钮 Like the image below that appears after the end of the button animation
【问题讨论】:
您可以使用 StatefulWidget 并使用 boolean isLoading = true ,然后如果您等待动画完成并将 isLoading 设置为 false ,您可以使用以下语法
if(!isLoading) RaisedButton(child:Text("Got It")
【讨论】: