GlassPageTransitionsBuilder class
A PageTransitionsBuilder that provides native iOS parallax slide transitions with continuous rounded-corner page clipping (GlassPageTransitionClip) during push, pop, and interactive swipe-back gestures. The card owns the horizontal transition shadow, so it follows the resolved corner radius including overrides on a descendant GlassPage. Square pages retain the standard Cupertino edge shadow.
Plug into PageTransitionsTheme in a MaterialApp (or router theme) to
apply rounded iOS page transitions app-wide:
MaterialApp(
theme: ThemeData(
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
TargetPlatform.iOS: GlassPageTransitionsBuilder(),
TargetPlatform.macOS: GlassPageTransitionsBuilder(),
},
),
),
home: const HomeScreen(),
)
- Inheritance
-
- Object
- PageTransitionsBuilder
- GlassPageTransitionsBuilder
Constructors
- GlassPageTransitionsBuilder({double? transitionCornerRadius})
-
Creates a GlassPageTransitionsBuilder.
const
Properties
- delegatedTransition → DelegatedTransitionBuilder?
-
Provides a secondary transition to the previous route.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- reverseTransitionDuration → Duration
-
The duration the transition going in reverse.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionCornerRadius → double?
-
Continuous superellipse corner radius applied to the page while
transitioning.
final
- transitionDuration → Duration
-
The duration the transition going forwards.
no setteroverride
Methods
-
buildTransitions<
T> (PageRoute< T> route, BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) → Widget -
Wraps the child with one or more transition widgets which define how
routearrives on and leaves the screen.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited