底部导航tab监听中关于_notify方法的一个问题?
来源:5-12 扩展hi_navigator支持底部tab导航通知

weixin_慕莱坞8108303
2023-01-12
老师,对于hi_navigator.dart中的_notify方法,在判断完是底部tab发生切换之后,将_bottomTab赋值给current是不是没有意义,因为根据onBottomTabChange方法,current已经等于了_bottomTab,这里是不是应该写成_current = _bottomTab!;
写回答
1回答
-
CrazyCodeBoy
2023-01-17
应该不行,current标识的是当前页面,_current标识的是上一个页面。00