themeAnimationStyle property

AnimationStyle? themeAnimationStyle
final

Used to override the theme animation curve and duration.

If AnimationStyle.duration is provided, it will be used to override the theme animation duration in the underlying AnimatedTheme widget. If it is null, then themeAnimationDuration will be used. Otherwise, defaults to 200ms.

If AnimationStyle.curve is provided, it will be used to override the theme animation curve in the underlying AnimatedTheme widget. If it is null, then themeAnimationCurve will be used. Otherwise, defaults to Curves.linear.

To disable the theme animation, use AnimationStyle.noAnimation.

This sample showcases how to override the theme animation curve and duration in the MaterialApp widget using AnimationStyle.
link

To create a local project with this code sample, run:
flutter create --sample=material.MaterialApp.themeAnimationStyle.1 mysample

Implementation

final AnimationStyle? themeAnimationStyle;