Commit d911ad60 authored by GZCFrameWork's avatar GZCFrameWork Committed by GitHub

fix:增加漏传的文件

parent f4427cf1
import 'package:flutter_boost/container/boost_container.dart';
import 'package:flutter/material.dart';
import 'package:flutter_boost/AIOService/NavigationService/service/NavigationService.dart';
class NavigatorCanPopObserver extends BoostNavigatorObserver{
@override
void didPush(Route route, Route previousRoute) {
super.didPush(route, previousRoute);
_noticeCanPopToNative(route);
}
@override
void didPop(Route route, Route previousRoute) {
// TODO: implement didPop
super.didPop(route, previousRoute);
_noticeCanPopToNative(route);
}
_noticeCanPopToNative(Route route){
bool canPop = route.navigator.canPop();
NavigationService.flutterCanPop(canPop);
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment