Skip to content

Commit 428e019

Browse files
Port for Flutter v2.8.0
1 parent dccfc77 commit 428e019

File tree

6 files changed

+25
-17
lines changed

6 files changed

+25
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.2.0+1
2+
* Port for Flutter v2.8.0
3+
14
# 0.2.0
25
* Port to Null-Safety
36

example/pubspec.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
path: ".."
88
relative: true
99
source: path
10-
version: "0.2.0"
10+
version: "0.2.0+1"
1111
async:
1212
dependency: transitive
1313
description:
1414
name: async
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.8.1"
17+
version: "2.8.2"
1818
boolean_selector:
1919
dependency: transitive
2020
description:
@@ -28,7 +28,7 @@ packages:
2828
name: characters
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.1.0"
31+
version: "1.2.0"
3232
charcode:
3333
dependency: transitive
3434
description:
@@ -80,7 +80,7 @@ packages:
8080
name: matcher
8181
url: "https://pub.dartlang.org"
8282
source: hosted
83-
version: "0.12.10"
83+
version: "0.12.11"
8484
meta:
8585
dependency: transitive
8686
description:
@@ -155,7 +155,7 @@ packages:
155155
name: test_api
156156
url: "https://pub.dartlang.org"
157157
source: hosted
158-
version: "0.4.2"
158+
version: "0.4.3"
159159
typed_data:
160160
dependency: transitive
161161
description:
@@ -169,7 +169,7 @@ packages:
169169
name: vector_math
170170
url: "https://pub.dartlang.org"
171171
source: hosted
172-
version: "2.1.0"
172+
version: "2.1.1"
173173
sdks:
174-
dart: ">=2.12.0 <3.0.0"
174+
dart: ">=2.14.0 <3.0.0"
175175
flutter: ">=1.17.0"

lib/src/advanced_navigator.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,10 @@ class AdvancedNavigatorState extends State<AdvancedNavigator> with RouteInformat
424424
_routerDelegate._currentNestedPath = subtreeConfiguration;
425425
var configuration = _routerDelegate.currentConfiguration;
426426
//TODO: check type
427-
_informationProvider?.routerReportsNewRouteInformation(configuration);
427+
_informationProvider?.routerReportsNewRouteInformation(
428+
configuration,
429+
type: RouteInformationReportingType.navigate,
430+
);
428431
}
429432

430433
@override

lib/src/route_information_provider.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class NestedRouteInformationProvider extends RouteInformationProvider
8080
RouteInformation _value;
8181

8282
@override
83-
void routerReportsNewRouteInformation(RouteInformation routeInformation, {bool isNavigation = true}) {
83+
void routerReportsNewRouteInformation(RouteInformation routeInformation,
84+
{required RouteInformationReportingType type}) {
8485
// notify parent of changes in nested navigator
8586
parent.updatedSubtree(routeInformation);
8687
_value = routeInformation;
@@ -132,7 +133,8 @@ class EmptyRouteInformationProvider extends RouteInformationProvider with Change
132133
RouteInformation _value;
133134

134135
@override
135-
void routerReportsNewRouteInformation(RouteInformation routeInformation, {bool isNavigation = true}) {
136+
void routerReportsNewRouteInformation(RouteInformation routeInformation,
137+
{required RouteInformationReportingType type}) {
136138
_value = routeInformation;
137139
}
138140
}

pubspec.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.8.1"
10+
version: "2.8.2"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -21,7 +21,7 @@ packages:
2121
name: characters
2222
url: "https://pub.dartlang.org"
2323
source: hosted
24-
version: "1.1.0"
24+
version: "1.2.0"
2525
charcode:
2626
dependency: transitive
2727
description:
@@ -66,7 +66,7 @@ packages:
6666
name: matcher
6767
url: "https://pub.dartlang.org"
6868
source: hosted
69-
version: "0.12.10"
69+
version: "0.12.11"
7070
meta:
7171
dependency: transitive
7272
description:
@@ -134,7 +134,7 @@ packages:
134134
name: test_api
135135
url: "https://pub.dartlang.org"
136136
source: hosted
137-
version: "0.4.2"
137+
version: "0.4.3"
138138
typed_data:
139139
dependency: transitive
140140
description:
@@ -148,7 +148,7 @@ packages:
148148
name: vector_math
149149
url: "https://pub.dartlang.org"
150150
source: hosted
151-
version: "2.1.0"
151+
version: "2.1.1"
152152
sdks:
153-
dart: ">=2.12.0 <3.0.0"
153+
dart: ">=2.14.0 <3.0.0"
154154
flutter: ">=1.17.0"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: advanced_navigator
22
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.
3-
version: 0.2.0
3+
version: 0.2.0+1
44
repository: https://github.com/LucasAschenbach/advanced_navigator
55

66
environment:

0 commit comments

Comments
 (0)