Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate linked_scroll_controller to null safety. #3623

Merged
merged 11 commits into from
Feb 4, 2022
Merged

Migrate linked_scroll_controller to null safety. #3623

merged 11 commits into from
Feb 4, 2022

Conversation

polina-c
Copy link
Contributor

@polina-c polina-c commented Feb 3, 2022

No description provided.

@polina-c polina-c marked this pull request as ready for review February 4, 2022 01:35
@@ -372,14 +370,14 @@ class _LinkedScrollActivity extends ScrollActivity {

void _updateUserScrollDirection() {
assert(drivers.isNotEmpty);
ScrollDirection commonDirection;
ScrollDirection? commonDirection;
Copy link
Member

Choose a reason for hiding this comment

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

this looks like it can be late instead of nullable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It cannot because the line "commonDirection ??= driver.userScrollDirection" first read and then initializes.

@polina-c polina-c merged commit 59e7568 into flutter:master Feb 4, 2022
@polina-c polina-c deleted the lsc branch February 4, 2022 19:40
@polina-c
Copy link
Contributor Author

polina-c commented Feb 4, 2022

tested functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants