fish-redux icon indicating copy to clipboard operation
fish-redux copied to clipboard

NavigatorObserver didpop执行的时候,怎么用dispatch执行一个action?

Open koalababy2024 opened this issue 5 years ago • 0 comments
trafficstars

class CusomObserver extends NavigatorObserver{

  @override
  void didPop(Route<dynamic> route, Route<dynamic> previousRoute) {
    print("*****************");
    print(route);
    print("*****************");
    print(route.navigator.context);
    print("*****************");
    print(route.settings.name);

    if ("vehicle_manager" == route.settings.name){
      PageRoutes pageRoutes = routes as PageRoutes;

      Page page = pageRoutes.pages[route.settings.name];
      page as VehicleManagerPage   //这里想要获取到了具体的page

    }
    
    print("*****************");
  }
}

怎么执行这个page内effect中的一个action呢?

koalababy2024 avatar Jul 31 '20 06:07 koalababy2024