presentation/widgets/common/scene_transition_overlay library
Classes
- SceneTransitionController
-
Pure state machine driving SceneTransitionOverlay — no
Animation/BuildContexthere, so it's unit-testable without pumping a widget tree. - SceneTransitionOverlay
- Fades or shape-wipes a full-screen barrier over child while a controller-driven transition runs. The underlying scene cannot receive pointers or semantics while the transition is active.
Enums
- SceneTransitionPhase
- Lifecycle of one scene transition: idle (no overlay, old/new scene interactive) → covering (fading a barrier in over the old scene) → loading (barrier up, showing progress) → revealing (fading the barrier back out over the new scene) → back to idle; or error instead of revealing if the load failed.
Typedefs
-
SceneTransitionLoad
= Future<
SdkResult< Function(void onProgress(double progress))void> > -
A transition's load step: does the real work (asset preload, screen
setup, ...) and reports progress via
onProgress(0.0–1.0) as it goes.