Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Remove the AnimatedSize vsync parameter #480

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

jason-simmons
Copy link
Member

This is needed in order to land flutter/flutter#80554,
which will deprecate AnimatedSize.vsync

Copy link
Contributor

@rami-a rami-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but have a couple questions

@@ -556,7 +556,6 @@ class _ExpandingBottomSheetState extends State<ExpandingBottomSheet>
key: _expandingBottomSheetKey,
duration: const Duration(milliseconds: 225),
curve: Curves.easeInOut,
vsync: this,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this class still need to be a TickerProviderStateMixin

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the TickerProviderStateMixin

@@ -405,7 +405,6 @@ class _GalleryDemoPageState extends State<GalleryDemoPage>
);
} else {
section = AnimatedSize(
vsync: this,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this class still need to be a TickerProviderStateMixin?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still needed because _GalleryDemoPageState is also creating an AnimationController that uses a TickerProvider

This is needed in order to land flutter/flutter#80554,
which will deprecate AnimatedSize.vsync
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jason-simmons jason-simmons merged commit e06144f into flutter:master Apr 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants