Skip to content

Commit d229846

Browse files
author
maxu
committed
修改popToRoot
1 parent 0d38f04 commit d229846

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

android/src/main/kotlin/tal/com/d_stack/node/constants/DNodeActionType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class DNodeActionType {
1616
public static final String DNodeActionTypePopTo = "popTo";
1717

1818
// PopToRoot
19-
public static final String DNodeActionTypePopToRoot = "popToNativeRoot";
19+
public static final String DNodeActionTypePopToRoot = "popToRoot";
2020

2121
// PopSkip
2222
public static final String DNodeActionTypePopSkip = "popSkip";

example/pubspec.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ packages:
5757
relative: true
5858
source: path
5959
version: "1.2.8+4"
60+
d_stack_spy:
61+
dependency: "direct dev"
62+
description:
63+
path: "../../d_stack_spy"
64+
relative: true
65+
source: path
66+
version: "0.0.1"
6067
fake_async:
6168
dependency: transitive
6269
description:
@@ -158,4 +165,4 @@ packages:
158165
version: "2.1.0-nullsafety.3"
159166
sdks:
160167
dart: ">=2.10.0-110 <2.11.0"
161-
flutter: ">=1.17.0"
168+
flutter: ">=1.20.0 <2.0.0"

lib/d_stack.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class DStack {
210210

211211
@Deprecated('已废弃,请调用popToRoot')
212212
static void popToNativeRoot() {
213-
DNavigatorManager.popToNativeRoot();
213+
DNavigatorManager.popToRoot();
214214
}
215215

216216
/// 自定义转场动画进入页面

0 commit comments

Comments
 (0)