Comments (3)
的确没有处理replacement,这个在下一版本加上
from flutter_page_tracker.
@lds8988
A页面push到B页面,B页面push到C页面,然后C页面直接pop到A页面,按照目前您这个框架,B页面的didPageView()和didPageExit()都会调用,实际上按照产品的定义,从C页面直接pop到A页面,B页面的两个的didPageView()和didPageExit()是不需要埋点的,怎么解决这个问题?
C页面pop到A页面的方法如下:
Navigator.of(context).popUntil((Route route){
if (route.settings.name == "/"){
return true;
}
return false;
});
from flutter_page_tracker.
@lds8988
A页面push到B页面,B页面push到C页面,然后C页面直接pop到A页面,按照目前您这个框架,B页面的didPageView()和didPageExit()都会调用,实际上按照产品的定义,从C页面直接pop到A页面,B页面的两个的didPageView()和didPageExit()是不需要埋点的,怎么解决这个问题?C页面pop到A页面的方法如下:
Navigator.of(context).popUntil((Route route){ if (route.settings.name == "/"){ return true; } return false; });
我不是开发者
from flutter_page_tracker.
Related Issues (17)
- 没有支持最新的provider,建议支持 HOT 2
- 作者可以建一个 Flutter 埋点群吗 HOT 5
- 如何获取页面信息 HOT 3
- pub.dev GitHub链接错误 HOT 1
- 和flutter_bloc报provider版本冲突 HOT 1
- flutter sdk 2.0.3 接口变动报错
- 使用PageViewListenerMixin 在切换时不会触发对应页面的didPageView方法
- 升级为flutter2.2.3报如下错误
- 看样子是不维护了
- PageViewListenerMixin 在切换时会触发其他不显示的Tab的didPageView方法 HOT 4
- subscribe 为什么放在didChangeDependencies里? HOT 1
- subscribe为什么放在didChangeDependencies()里?
- PageViewMixin和PageViewWrapper的区别是什么? HOT 3
- 有个疑问,为什么需要重写didPush didPop等方法? HOT 1
- PopUtil的问题 HOT 1
- 请问有多个navigatorObservers,会报错。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_page_tracker.