fix: replace transition
This commit is contained in:
parent
fc98ef254e
commit
b134bd87d2
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue