Skip to content

Commit 657b954

Browse files
committed
fix 1.17
1 parent cc320d6 commit 657b954

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/container/boost_container.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ class BoostContainer extends Navigator {
122122
}
123123

124124
String desc() => '{uniqueId=${settings.uniqueId},name=${settings.name}}';
125+
126+
RouteListFactory get initialRoutes => super.onGenerateInitialRoutes;
125127
}
126128

127129
class BoostContainerState extends NavigatorState {
@@ -164,7 +166,7 @@ class BoostContainerState extends NavigatorState {
164166
final String initRoute = widget.initialRoute ?? Navigator.defaultRouteName;
165167
if (initRoute != null && routerHistory.isEmpty) {
166168
routerHistory.addAll(
167-
widget.onGenerateInitialRoutes(
169+
widget.initialRoutes(
168170
this,
169171
widget.initialRoute ?? Navigator.defaultRouteName
170172
)

0 commit comments

Comments
 (0)