Skip to content

Commit

Permalink
Port for Flutter v2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAschenbach committed Dec 9, 2021
1 parent dccfc77 commit 428e019
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.2.0+1
* Port for Flutter v2.8.0

# 0.2.0
* Port to Null-Safety

Expand Down
14 changes: 7 additions & 7 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.0"
version: "0.2.0+1"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -80,7 +80,7 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -155,7 +155,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2"
version: "0.4.3"
typed_data:
dependency: transitive
description:
Expand All @@ -169,7 +169,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=1.17.0"
5 changes: 4 additions & 1 deletion lib/src/advanced_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ class AdvancedNavigatorState extends State<AdvancedNavigator> with RouteInformat
_routerDelegate._currentNestedPath = subtreeConfiguration;
var configuration = _routerDelegate.currentConfiguration;
//TODO: check type
_informationProvider?.routerReportsNewRouteInformation(configuration);
_informationProvider?.routerReportsNewRouteInformation(
configuration,
type: RouteInformationReportingType.navigate,
);
}

@override
Expand Down
6 changes: 4 additions & 2 deletions lib/src/route_information_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class NestedRouteInformationProvider extends RouteInformationProvider
RouteInformation _value;

@override
void routerReportsNewRouteInformation(RouteInformation routeInformation, {bool isNavigation = true}) {
void routerReportsNewRouteInformation(RouteInformation routeInformation,
{required RouteInformationReportingType type}) {
// notify parent of changes in nested navigator
parent.updatedSubtree(routeInformation);
_value = routeInformation;
Expand Down Expand Up @@ -132,7 +133,8 @@ class EmptyRouteInformationProvider extends RouteInformationProvider with Change
RouteInformation _value;

@override
void routerReportsNewRouteInformation(RouteInformation routeInformation, {bool isNavigation = true}) {
void routerReportsNewRouteInformation(RouteInformation routeInformation,
{required RouteInformationReportingType type}) {
_value = routeInformation;
}
}
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand All @@ -21,7 +21,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -66,7 +66,7 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -134,7 +134,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2"
version: "0.4.3"
typed_data:
dependency: transitive
description:
Expand All @@ -148,7 +148,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=1.17.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: advanced_navigator
description: Flutter's Navigator 2.0 as one easy-to-use widget with full page history manipulation operations, simplified pop event delegation and powerful nesting.
version: 0.2.0
version: 0.2.0+1
repository: https://github.com/LucasAschenbach/advanced_navigator

environment:
Expand Down

0 comments on commit 428e019

Please sign in to comment.