FlutterRepo/hybrid_stack_manager

The getter 'history' isn't defined for the class '#lib1::NavigatorState'.

Closed this issue · 4 comments

61:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
compiler message: Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
compiler message: List<Route> navHistory = navState.history;

Is there a way to solve this problem?

image

大佬,这个最后怎么解决的?
一样的问题

看之前关闭的问题,解决了的

看一下使用说明,里面有注意事项,需要在navigator.dart里面把私有属性history公开出来

看一下使用说明,里面有注意事项,需要在navigator.dart里面把私有属性history公开出来

已经解决 谢谢