【问题标题】:How to display button after completed Lottie animation in flutter颤动中完成Lottie动画后如何显示按钮
【发布时间】:2021-08-10 16:57:34
【问题描述】:

我希望 Flutter 框架在 Lottie 动画结束时向用户显示一个按钮 Like the image below that appears after the end of the button animation

【问题讨论】:

    标签: android flutter lottie


    【解决方案1】:

    您可以使用 StatefulWidget 并使用 boolean isLoading = true ,然后如果您等待动画完成并将 isLoading 设置为 false ,您可以使用以下语法

    if(!isLoading) RaisedButton(child:Text("Got It")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-24
      • 1970-01-01
      • 2019-01-04
      • 1970-01-01
      相关资源
      最近更新 更多