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(
context,
url,
transition: replace
? TransitionType.fadeIn
: theme == AppThemeType.cupertino
? TransitionType.cupertino
: TransitionType.material,
transition: theme == AppThemeType.cupertino
? TransitionType.cupertino
: TransitionType.material,
replace: replace,
);
} else {