Skip to content

Commit afe3df4

Browse files
ci: bump version to v0.4.16
1 parent 9d545ab commit afe3df4

5 files changed

Lines changed: 59 additions & 58 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [0.4.16]
44

55
- Released @ 11/2025 (UTC)
6+
- Make RouteManger stateful
67

78
## [0.4.15]
89

example/example.dart

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ void main() {
1111

1212
final class HomeRouteState extends RouteState {
1313
HomeRouteState()
14-
: super.parse(
15-
'/home',
16-
// Use QuickForwardtEffect() as the default transtion effect for this
17-
// route. This can be overridden when pushing this route.
18-
animationEffect: const ForwardEffectWeb(),
19-
);
14+
: super.parse(
15+
'/home',
16+
// Use QuickForwardtEffect() as the default transtion effect for this
17+
// route. This can be overridden when pushing this route.
18+
animationEffect: const ForwardEffectWeb(),
19+
);
2020
}
2121

2222
// This route is only used in the RouteManager, so it does not need to
2323
// be pushed directly. It is a base route for the chat feature.
2424
final class BaseChatRouteState extends RouteState {
2525
BaseChatRouteState({Map<String, String>? queryParameters})
26-
: super.parse(
27-
'/chat',
28-
queryParameters: queryParameters,
29-
// Use a different animation effect for this route.
30-
animationEffect: const SlideDownEffect(),
31-
);
26+
: super.parse(
27+
'/chat',
28+
queryParameters: queryParameters,
29+
// Use a different animation effect for this route.
30+
animationEffect: const SlideDownEffect(),
31+
);
3232

3333
BaseChatRouteState.from(RouteState other) : super(other.uri);
3434
}
@@ -37,11 +37,11 @@ final class ChatRouteState extends BaseChatRouteState {
3737
final String chatId;
3838

3939
ChatRouteState({required this.chatId})
40-
: super(queryParameters: {'chatId': chatId});
40+
: super(queryParameters: {'chatId': chatId});
4141

4242
ChatRouteState.from(super.other)
43-
: chatId = other.uri.queryParameters['chatId'] ?? '',
44-
super.from();
43+
: chatId = other.uri.queryParameters['chatId'] ?? '',
44+
super.from();
4545
}
4646

4747
class MyApp extends StatelessWidget {

example/example_2.dart

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,40 @@ void main() {
1313

1414
final class HomeRouteState extends RouteState {
1515
HomeRouteState()
16-
: super.parse('/home', animationEffect: const CupertinoEffect());
16+
: super.parse('/home', animationEffect: const CupertinoEffect());
1717
}
1818

1919
final class MessagesRouteState extends RouteState {
2020
MessagesRouteState()
21-
: super.parse('/messages', animationEffect: const CupertinoEffect());
21+
: super.parse('/messages', animationEffect: const CupertinoEffect());
2222
}
2323

2424
final class ChatRouteState extends RouteState<String> {
2525
ChatRouteState()
26-
: super.parse('/chat', animationEffect: const CupertinoEffect());
26+
: super.parse('/chat', animationEffect: const CupertinoEffect());
2727
}
2828

2929
final class MessagesRouteState1 extends RouteState {
3030
MessagesRouteState1()
31-
: super.parse(
32-
'/messages?key1=value1',
33-
queryParameters: {'key1': 'value1'},
34-
animationEffect: const CupertinoEffect(),
35-
);
31+
: super.parse(
32+
'/messages?key1=value1',
33+
queryParameters: {'key1': 'value1'},
34+
animationEffect: const CupertinoEffect(),
35+
);
3636
}
3737

3838
final class MessagesRouteState2 extends RouteState {
3939
MessagesRouteState2()
40-
: super.parse(
41-
'/messages?key1=value1',
42-
queryParameters: {'key2': 'value2'},
43-
animationEffect: const CupertinoEffect(),
44-
);
40+
: super.parse(
41+
'/messages?key1=value1',
42+
queryParameters: {'key2': 'value2'},
43+
animationEffect: const CupertinoEffect(),
44+
);
4545
}
4646

4747
final class HomeDetailRouteState extends RouteState {
4848
HomeDetailRouteState()
49-
: super.parse('/home_detail', animationEffect: const CupertinoEffect());
49+
: super.parse('/home_detail', animationEffect: const CupertinoEffect());
5050
}
5151

5252
class MyApp extends StatelessWidget {

hosted_example/lib/main.dart

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ void main() {
1212

1313
final class HomeRouteState extends RouteState {
1414
HomeRouteState()
15-
: super.parse(
16-
'/home',
17-
// Use QuickForwardtEffect() as the default transtion effect for this
18-
// route. This can be overridden when pushing this route.
19-
animationEffect: const ForwardEffectWeb(),
20-
);
15+
: super.parse(
16+
'/home',
17+
// Use QuickForwardtEffect() as the default transtion effect for this
18+
// route. This can be overridden when pushing this route.
19+
animationEffect: const ForwardEffectWeb(),
20+
);
2121
}
2222

2323
// This route is only used in the RouteManager, so it does not need to
2424
// be pushed directly. It is a base route for the chat feature.
2525
final class BaseChatRouteState extends RouteState {
2626
BaseChatRouteState({Map<String, String>? queryParameters})
27-
: super.parse(
28-
'/chat',
29-
queryParameters: queryParameters,
30-
// Use a different animation effect for this route.
31-
animationEffect: const SlideDownEffect(),
32-
);
27+
: super.parse(
28+
'/chat',
29+
queryParameters: queryParameters,
30+
// Use a different animation effect for this route.
31+
animationEffect: const SlideDownEffect(),
32+
);
3333

3434
BaseChatRouteState.from(RouteState other) : super(other.uri);
3535
}
@@ -38,11 +38,11 @@ final class ChatRouteState extends BaseChatRouteState {
3838
final String chatId;
3939

4040
ChatRouteState({required this.chatId})
41-
: super(queryParameters: {'chatId': chatId});
41+
: super(queryParameters: {'chatId': chatId});
4242

4343
ChatRouteState.from(super.other)
44-
: chatId = other.uri.queryParameters['chatId'] ?? '',
45-
super.from();
44+
: chatId = other.uri.queryParameters['chatId'] ?? '',
45+
super.from();
4646
}
4747

4848
class MyApp extends StatelessWidget {

lib/main.dart

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,40 @@ void main() {
1313

1414
final class HomeRouteState extends RouteState {
1515
HomeRouteState()
16-
: super.parse('/home', animationEffect: const CupertinoEffect());
16+
: super.parse('/home', animationEffect: const CupertinoEffect());
1717
}
1818

1919
final class MessagesRouteState extends RouteState {
2020
MessagesRouteState()
21-
: super.parse('/messages', animationEffect: const CupertinoEffect());
21+
: super.parse('/messages', animationEffect: const CupertinoEffect());
2222
}
2323

2424
final class ChatRouteState extends RouteState<String> {
2525
ChatRouteState()
26-
: super.parse('/chat', animationEffect: const CupertinoEffect());
26+
: super.parse('/chat', animationEffect: const CupertinoEffect());
2727
}
2828

2929
final class MessagesRouteState1 extends RouteState {
3030
MessagesRouteState1()
31-
: super.parse(
32-
'/messages?key1=value1',
33-
queryParameters: {'key1': 'value1'},
34-
animationEffect: const CupertinoEffect(),
35-
);
31+
: super.parse(
32+
'/messages?key1=value1',
33+
queryParameters: {'key1': 'value1'},
34+
animationEffect: const CupertinoEffect(),
35+
);
3636
}
3737

3838
final class MessagesRouteState2 extends RouteState {
3939
MessagesRouteState2()
40-
: super.parse(
41-
'/messages?key1=value1',
42-
queryParameters: {'key2': 'value2'},
43-
animationEffect: const CupertinoEffect(),
44-
);
40+
: super.parse(
41+
'/messages?key1=value1',
42+
queryParameters: {'key2': 'value2'},
43+
animationEffect: const CupertinoEffect(),
44+
);
4545
}
4646

4747
final class HomeDetailRouteState extends RouteState {
4848
HomeDetailRouteState()
49-
: super.parse('/home_detail', animationEffect: const CupertinoEffect());
49+
: super.parse('/home_detail', animationEffect: const CupertinoEffect());
5050
}
5151

5252
class MyApp extends StatelessWidget {

0 commit comments

Comments
 (0)