13-04
This commit is contained in:
@@ -7,7 +7,7 @@ import '../page_b.dart';
|
||||
import '../page_c.dart';
|
||||
import '../home_page.dart';
|
||||
|
||||
class AppRouterDelegate extends RouterDelegate with ChangeNotifier{
|
||||
class AppRouterDelegate extends RouterDelegate<Object> with ChangeNotifier{
|
||||
|
||||
List<String> _value = ['/'];
|
||||
|
||||
@@ -35,13 +35,11 @@ class AppRouterDelegate extends RouterDelegate with ChangeNotifier{
|
||||
|
||||
@override
|
||||
Future<bool> popRoute() async{
|
||||
print('================');
|
||||
print('=======popRoute=========');
|
||||
return true;
|
||||
}
|
||||
|
||||
bool _onPopPage(Route route, result) {
|
||||
_value = List.of(_value)..removeLast();
|
||||
notifyListeners();
|
||||
return route.didPop(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user