• Taha Tesser's avatar
    Introduce `AnimationStyle` (#137945) · 19e284f8
    Taha Tesser authored
    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,
    ```
    19e284f8
Name
Last commit
Last update
..
action_buttons Loading commit data...
action_chip Loading commit data...
animated_icon Loading commit data...
app Loading commit data...
appbar Loading commit data...
autocomplete Loading commit data...
bottom_navigation_bar Loading commit data...
bottom_sheet Loading commit data...
card Loading commit data...
checkbox_list_tile Loading commit data...
choice_chip Loading commit data...
context_menu Loading commit data...
data_table Loading commit data...
date_picker Loading commit data...
dialog Loading commit data...
divider Loading commit data...
drawer Loading commit data...
dropdown Loading commit data...
dropdown_menu Loading commit data...
expansion_panel Loading commit data...
expansion_tile Loading commit data...
filter_chip Loading commit data...
floating_action_button Loading commit data...
ink Loading commit data...
input_chip Loading commit data...
input_decorator Loading commit data...
list_tile Loading commit data...
menu_anchor Loading commit data...
navigation_bar Loading commit data...
navigation_drawer Loading commit data...
navigation_rail Loading commit data...
page_transitions_theme Loading commit data...
paginated_data_table Loading commit data...
popup_menu Loading commit data...
progress_indicator Loading commit data...
radio_list_tile Loading commit data...
refresh_indicator Loading commit data...
reorderable_list Loading commit data...
scaffold Loading commit data...
scrollbar Loading commit data...
search_anchor Loading commit data...
slider Loading commit data...
switch Loading commit data...
switch_list_tile Loading commit data...
tabs Loading commit data...
text_button Loading commit data...
text_field Loading commit data...
theme_data Loading commit data...
time_picker Loading commit data...
toggle_buttons Loading commit data...
tooltip Loading commit data...