Taha Tesser
19e284f88f
Introduce AnimationStyle
( #137945 )
...
This PR introduces `AnimationStyle`, it is used to override default animation curves and durations in several widgets.
fixes [Add the ability to customize MaterialApp theme animation duration](https://github.com/flutter/flutter/issues/78372 )
fixes [Allow customization of showMenu transition animation curves and duration](https://github.com/flutter/flutter/issues/135638 )
Here is an example where popup menu curve and transition duration is overriden:
```dart
popUpAnimationStyle: AnimationStyle(
curve: Easing.emphasizedAccelerate,
duration: Durations.medium4,
),
```
Set `AnimationStyle.noAnimation` to disable animation.
```dart
return MaterialApp(
themeAnimationStyle: AnimationStyle.noAnimation,
```
2023-11-16 18:33:20 +00:00
..
2023-04-04 20:34:29 +00:00
2023-07-12 20:08:05 +00:00
2022-12-20 16:03:21 -08:00
2023-04-04 20:34:29 +00:00
2023-11-16 18:33:20 +00:00
2023-07-17 17:56:07 +00:00
2023-10-24 15:27:07 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-09-20 19:59:08 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-11-01 23:29:49 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-05-09 15:47:16 +00:00
2023-04-04 20:34:29 +00:00
2023-09-11 18:55:53 -05:00
2023-04-04 20:34:29 +00:00
2023-04-18 23:00:03 +00:00
2023-04-04 20:34:29 +00:00
2023-07-17 18:24:49 +00:00
2023-04-04 20:34:29 +00:00
2023-09-18 08:33:14 +00:00
2023-04-04 20:34:29 +00:00
2023-08-21 20:13:22 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-08-29 17:31:02 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-09-01 00:02:04 +00:00
2023-06-01 15:22:03 -07:00
2023-06-29 06:29:03 +00:00
2023-04-04 20:34:29 +00:00
2023-10-18 20:13:08 +00:00
2023-11-03 22:25:37 +00:00
2023-07-17 18:24:49 +00:00
2023-07-11 09:30:05 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-08-15 00:55:07 +00:00
2023-04-04 20:34:29 +00:00
2023-11-16 18:33:20 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-07-11 20:04:17 +00:00
2023-05-05 16:39:11 +00:00
2023-11-03 22:25:37 +00:00
2023-09-08 09:40:49 +00:00
2023-07-12 20:08:05 +00:00
2023-04-04 20:34:29 +00:00
2023-06-21 19:32:04 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-07-12 20:08:05 +00:00
2023-04-04 20:34:29 +00:00
2023-11-07 10:26:23 -08:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-04-04 20:34:29 +00:00
2023-10-26 23:55:38 +00:00
2023-07-17 17:56:07 +00:00
2023-06-02 01:05:31 +00:00
2023-11-03 20:18:36 +00:00