Flutter 加载自动执行一次

86 阅读1分钟
WidgetsBinding.instance.addPostFrameCallback((_) {
  UpdateClient.show(context: context);
});

这个方法很好用