【问题标题】:In flutter How I can Show interstial ads after each 5 minutes在颤动中我如何在每 5 分钟后显示插页式广告
【发布时间】:2022-01-13 17:18:51
【问题描述】:

我在使用 Flutter 实现插页式定时广告时遇到问题。我已经实现了一个选项,该选项在单击按钮时显示广告,但我想实现它每 5 分钟显示一次广告的位置我应该做什么可以帮助我

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: flutter flutter-layout flutter-dependencies flutter-web flutter-test


【解决方案1】:

你需要使用Timer.periodic

Timer.periodic(Duration(minutes: 5), (_) {
  // show popup from here
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-11
    • 1970-01-01
    • 2017-05-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多