other_animations library

Classes

Animations
FadeScaleTransition
A widget that implements the Material fade transition.
FadeScaleTransitionConfiguration
The modal transition configuration for a Material fade transition.
FadeThroughPageTransitionsBuilder
Used by PageTransitionsTheme to define a page route transition animation in which the outgoing page fades out, then the incoming page fades in and scale up.
FadeThroughTransition
Defines a transition in which outgoing elements fade out, then incoming elements fade in and scale up.
ModalConfiguration
A configuration object containing the properties needed to implement a modal route.
Motion
Motion design tokens used by animations.
OpenContainer<T extends Object>
A container that grows to fill the screen to reveal new content when tapped.
OpenContainerState<T extends Object>
PageTransitionSwitcher
A widget that transitions from an old child to a new child whenever child changes using an animation specified by transitionBuilder.
PageTransitionSwitcherState
SharedAxisPageTransitionsBuilder
Used by PageTransitionsTheme to define a page route transition animation in which outgoing and incoming elements share a fade transition.
SharedAxisTransition
Defines a transition in which outgoing and incoming elements share a fade transition.

Enums

ContainerTransitionType
The OpenContainer widget's fade transition type.
SharedAxisTransitionType
Determines which type of shared axis transition is used.

Functions

showModal<T>({required BuildContext context, required WidgetBuilder builder, ModalConfiguration configuration = const FadeScaleTransitionConfiguration(), bool useRootNavigator = true}) Future<T?>
Displays a modal above the current contents of the app.
showModalFor<T>({required WidgetBuilder builder, required NavigatorState navigator, MaterialLocalizations? localizations, ModalConfiguration configuration = const FadeScaleTransitionConfiguration(), bool useRootNavigator = true}) Future<T?>
Does the same thing showModal, without passing BuildContext.

Typedefs

CloseContainerActionCallback<S> = void Function({S returnValue})
Signature for action callback function provided to OpenContainer.openBuilder.
CloseContainerBuilder = Widget Function(BuildContext context, VoidCallback action)
Signature for a function that creates a Widget in closed state within an OpenContainer.
ClosedCallback<S> = void Function(S data)
Callback function which is called when the OpenContainer is closed.
OpenContainerBuilder<S> = Widget Function(BuildContext context, CloseContainerActionCallback<S> action)
Signature for a function that creates a Widget in open state within an OpenContainer.
PageTransitionSwitcherLayoutBuilder = Widget Function(List<Widget> entries, [AlignmentGeometry alignment])
Signature for builders used to generate custom layouts for PageTransitionSwitcher.
PageTransitionSwitcherTransitionBuilder = Widget Function(Widget child, Animation<double> primaryAnimation, Animation<double> secondaryAnimation)
Signature for builders used to generate custom transitions for PageTransitionSwitcher.