TurnPageTransitionsTheme class
A Theme of transition animation.
When you want to unify transitions on all screens,
you can easily do so
by setting TurnPageTransitionsTheme to pageTransitionsTheme argument of ThemeData.
example: return MaterialApp( title: 'TurnPageTransition Example', theme: ThemeData( pageTransitionsTheme: const TurnPageTransitionsTheme(), primarySwatch: Colors.blue, ), home: HomePage(), )
- Inheritance
-
- Object
- PageTransitionsTheme
- TurnPageTransitionsTheme
Constructors
- TurnPageTransitionsTheme({Color overleafColor = defaultOverleafColor, Color overleafBorderColor = defaultOverleafBorderColor, double overleafBorderWidth = defaultOverleafBorderWidth, @Deprecated('Use animationTransitionPoint instead') double? turningPoint, double? animationTransitionPoint, TurnDirection direction = TurnDirection.rightToLeft})
-
const
Properties
- animationTransitionPoint → double?
-
The point that behavior of the turn-page-animation changes.
This value must be 0 <= animationTransitionPoint < 1.
final
-
builders
→ Map<
TargetPlatform, PageTransitionsBuilder> -
The PageTransitionsBuilders supported by this theme.
no setterinherited
- direction → TurnDirection
-
The direction in which the pages are turned.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- overleafBorderColor → Color
-
The color of the overleaf border that appears on the page edge during transition
default Color is Colors.black
final
- overleafBorderWidth → double
-
The width of the overleaf border that appears on the page edge during transition
default value is 2.0
final
- overleafColor → Color
-
The color of page backsides
default Color is Colors.grey
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- turningPoint → double?
-
The point at which the page-turning animation behavior changes.
This value must be between 0 and 1 (0 <= turningPoint < 1).
final
Methods
-
buildTransitions<
T> (PageRoute< T> route, BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) → Widget -
Delegates to the builder for the current ThemeData.platform.
If a builder for the current platform is not found, then the
ZoomPageTransitionsBuilder is used.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
delegatedTransition(
TargetPlatform platform) → DelegatedTransitionBuilder? -
Provides the delegate transition for the target platform.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited