美文网首页初见
关于'!_debugLocked': is not true.问

关于'!_debugLocked': is not true.问

作者: Flonger | 来源:发表于2020-05-29 17:27 被阅读0次

可以使用Future去包含路由跳转:

  Future.delayed(Duration.zero,(){
    Navigator.of(context).push(MaterialPageRoute(
      builder: (BuildContext context) => routes.buildPage(path, params),
    ));
  });
  Future.delayed(Duration.zero,(){
    Navigator.of(context).push(MaterialPageRoute(
      settings: RouteSettings(name: path),
      builder: (BuildContext context) => routes.buildPage(path, params),
      fullscreenDialog: true,
    ));
  });
  Future.delayed(Duration.zero,(){
    Navigator.of(context).pop();
  });

相关文章

网友评论

    本文标题:关于'!_debugLocked': is not true.问

    本文链接:https://www.haomeiwen.com/subject/vorfzhtx.html