Skip to content

Commit

Permalink
Remove deprecated AnimatedSize.vsync parameter (#119186)
Browse files Browse the repository at this point in the history
* Remove deprecated AnimatedSize.vsync parameter

* add dartfix

* Update packages/flutter/lib/fix_data/fix_widgets/fix_widgets.yaml

* Update packages/flutter/lib/fix_data/fix_widgets/fix_widgets.yaml

---------

Co-authored-by: Kate Lovett <[email protected]>
  • Loading branch information
goderbauer and Piinks authored Jan 31, 2023
1 parent 2340902 commit 65900b7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
11 changes: 11 additions & 0 deletions packages/flutter/lib/fix_data/fix_widgets/fix_widgets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
# * ListWheelScrollView: fix_list_wheel_scroll_view.yaml
version: 1
transforms:
# Changes made in https://github.com/flutter/flutter/pull/119186 and https://github.com/flutter/flutter/pull/81067.
- title: "Remove 'vsync'"
date: 2023-01-30
element:
uris: ['widgets.dart', 'material.dart', 'cupertino.dart']
constructor: ''
inClass: 'AnimatedSize'
changes:
- kind: 'removeParameter'
name: 'vsync'

# Changes made in https://github.com/flutter/flutter/pull/114459
- title: "Migrate to 'boldTextOf'"
date: 2022-10-28
Expand Down
5 changes: 0 additions & 5 deletions packages/flutter/lib/src/widgets/animated_size.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ class AnimatedSize extends StatefulWidget {
this.curve = Curves.linear,
required this.duration,
this.reverseDuration,
@Deprecated(
'This field is now ignored. '
'This feature was deprecated after v2.2.0-10.1.pre.'
)
TickerProvider? vsync,
this.clipBehavior = Clip.hardEdge,
});

Expand Down
4 changes: 4 additions & 0 deletions packages/flutter/test_fixes/widgets/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ void main() {
RenderObjectWidget renderObjectWidget;
RenderObject renderObject;
Object object;
TickerProvider vsync;

// Changes made in https://github.com/flutter/flutter/pull/119186 and https://github.com/flutter/flutter/pull/81067.
AnimatedSize(vsync: vsync, duration: Duration.zero);

// Changes made in https://github.com/flutter/flutter/pull/45941 and https://github.com/flutter/flutter/pull/83843
final WidgetsBinding binding = WidgetsBinding.instance;
Expand Down
4 changes: 4 additions & 0 deletions packages/flutter/test_fixes/widgets/widgets.dart.expect
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ void main() {
RenderObjectWidget renderObjectWidget;
RenderObject renderObject;
Object object;
TickerProvider vsync;

// Changes made in https://github.com/flutter/flutter/pull/119186 and https://github.com/flutter/flutter/pull/81067.
AnimatedSize(duration: Duration.zero);

// Changes made in https://github.com/flutter/flutter/pull/45941 and https://github.com/flutter/flutter/pull/83843
final WidgetsBinding binding = WidgetsBinding.instance;
Expand Down

0 comments on commit 65900b7

Please sign in to comment.