fix: replace transition

This commit is contained in:
Rongjian Zhang 2020-04-06 13:18:23 +08:00
parent fc98ef254e
commit b134bd87d2
1 changed files with 3 additions and 5 deletions

View File

@ -201,11 +201,9 @@ class ThemeModel with ChangeNotifier {
return router.navigateTo( return router.navigateTo(
context, context,
url, url,
transition: replace transition: theme == AppThemeType.cupertino
? TransitionType.fadeIn ? TransitionType.cupertino
: theme == AppThemeType.cupertino : TransitionType.material,
? TransitionType.cupertino
: TransitionType.material,
replace: replace, replace: replace,
); );
} else { } else {