Another exception was thrown: 'package:flutter/src/widgets/navigator.dart': Failed asserti

参考:https://blog.csdn.net/wapchief/article/details/109110265

 

解决方法:已实现

Future.delayed(Duration.zero, () {
  Navigator. ...
});

 

 

另一种方式:没尝试

SchedulerBinding.instance.addPostFrameCallback((_) {
  Navigator. ...
});

 

上一篇:转:解决 nginx: [alert] kill(189, 1) failed (3: No such process)


下一篇:[Vue warn]: Error in created hook (Promise/async): “Error: Request failed with status code 404“