Skip to content

Commit 0fc32b4

Browse files
committed
fix #506
1 parent 0cbaa4b commit 0fc32b4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

flutter_modular/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [4.0.0+6] - 2021-09-16
1+
## [4.0.0+7] - 2021-09-16
22

33
* New documentation is here! [https://modular.flutterando.com.br](https://modular.flutterando.com.br).
44
* Modular design now uses Layered Architecture (Clean Architecture) with 100% code coverage.

flutter_modular/lib/src/presenter/models/child_route.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class ChildRoute<T> extends ParallelRoute<T> {
1010
required ModularChild child,
1111
CustomTransition? customTransition,
1212
List<ParallelRoute> children = const [],
13-
Duration duration = const Duration(milliseconds: 300),
14-
TransitionType transition = TransitionType.defaultTransition,
13+
Duration? duration,
14+
TransitionType? transition,
1515
List<RouteGuard> guards = const [],
1616
}) : assert(name.startsWith('/'), 'The name must always start with a /'),
1717
assert(children.where((e) => e.name == name).isEmpty,

flutter_modular/lib/src/presenter/models/module_route.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class ModuleRoute<T> extends ParallelRoute<T> {
4242
factory ModuleRoute(
4343
String name, {
4444
required Module module,
45-
TransitionType transition = TransitionType.defaultTransition,
45+
TransitionType? transition,
4646
CustomTransition? customTransition,
47-
Duration duration = const Duration(milliseconds: 300),
47+
Duration? duration,
4848
List<RouteGuard> guards = const [],
4949
}) {
5050
final route = ModuleRoute<T>._start(

flutter_modular/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_modular
22
description: Smart project structure with dependency injection and route management
3-
version: 4.0.0+6
3+
version: 4.0.0+7
44
homepage: https://github.com/Flutterando/modular
55

66
environment:

0 commit comments

Comments
 (0)