Skip to content

Commit

Permalink
feat: do not reverse execution NavigatorPushBeginHandle and Navigator…
Browse files Browse the repository at this point in the history
…PushEndHandle
  • Loading branch information
foxsofter committed Sep 5, 2024
1 parent 1d1c2b3 commit ec5c06a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.17.2

- feat: do not reverse execution NavigatorPushBeginHandle and NavigatorPushEndHandle

## 4.17.1

- feat: NavigatorPushBeginHandle url redirect takes effect immediately
Expand Down
6 changes: 2 additions & 4 deletions lib/src/navigator/thrio_navigator_implement.dart
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,8 @@ class ThrioNavigatorImplement {
String? fromURL,
String? innerURL,
}) async {
final reversed = _pushBeginHandlers.reversed;
var newURL = url;
for (final handle in reversed) {
for (final handle in _pushBeginHandlers) {
final ret = await handle(
newURL,
params: params,
Expand All @@ -230,8 +229,7 @@ class ThrioNavigatorImplement {
String? innerURL,
TPopParams? popResult,
}) async {
final reversed = _pushEndHandlers.reversed;
for (final handle in reversed) {
for (final handle in _pushEndHandlers) {
await handle(
url,
params: params,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_thrio
description: Thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs.
version: 4.17.1
version: 4.17.2
homepage: https://github.com/flutter-thrio/flutter_thrio

environment:
Expand Down

0 comments on commit ec5c06a

Please sign in to comment.