主题
PageTransitionTheme 继承自: Enum
用于路由切换的页面切换预设动画。
例如,它们可与 PageTransitionsTheme 配合使用,以定义各平台的导航动画。
枚举值
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
NONE | — | 'none' | Disables route transition animation. |
FADE_UPWARDS | — | 'fadeUpwards' | Fade-and-slide transition where the incoming page moves upward, similar to the one provided by Android O. |
OPEN_UPWARDS | — | 'openUpwards' | Upward reveal transition with clipping/scrim, matching the transition used on Android P. |
ZOOM | — | 'zoom' | Zoom/fade transition used by modern Material route animations, similar to the one provided in Android Q. |
CUPERTINO | — | 'cupertino' | Cupertino-style horizontal page transition, which matches native iOS page transitions. |
PREDICTIVE | — | 'predictive' | Predictive-back transition that allows peeking behind the current route on Android. |
FADE_FORWARDS | — | 'fadeForwards' | Fade-forward Material route transition, similar to the one provided by Android U. |