Giter Site home page Giter Site logo

Comments (3)

SBDavid avatar SBDavid commented on August 19, 2024 1

的确没有处理replacement,这个在下一版本加上

from flutter_page_tracker.

XinleZhou2018 avatar XinleZhou2018 commented on August 19, 2024

@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 avatar lds8988 commented on August 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.