The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Closed this issue · 4 comments
wangqianjun commented
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?
realchen commented
大佬,这个最后怎么解决的?
一样的问题
Mongolian commented
看之前关闭的问题,解决了的
wangqianjun commented
看一下使用说明,里面有注意事项,需要在navigator.dart里面把私有属性history公开出来
realchen commented
看一下使用说明,里面有注意事项,需要在navigator.dart里面把私有属性history公开出来
已经解决 谢谢