Skip to content

Commit 6aed12c

Browse files
committed
fix: Sets maintainState to true for all routes
1 parent c9e1af5 commit 6aed12c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/code_generation/router/stacked_router_annotations.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class MaterialRoute<T> extends StackedRoute<T> {
236236
required Type page,
237237
bool initial = false,
238238
bool fullscreenDialog = false,
239-
bool maintainState = false,
239+
bool maintainState = true,
240240
bool fullMatch = false,
241241
String? name,
242242
List<Type>? guards,
@@ -268,7 +268,7 @@ class CupertinoRoute<T> extends StackedRoute<T> {
268268
const CupertinoRoute({
269269
bool initial = false,
270270
bool fullscreenDialog = false,
271-
bool maintainState = false,
271+
bool maintainState = true,
272272
String? path,
273273
this.title,
274274
String? name,

0 commit comments

Comments
 (0)