-
Notifications
You must be signed in to change notification settings - Fork 28.9k
feat(FixedExtentScrollController): Add parent class properties to the constructor. #163190
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
feat(FixedExtentScrollController): Add parent class properties to the constructor. #163190
Conversation
Could you take some time to review this request? cc @Piinks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure we should add keepScrollOffset
, I think using Scrollable.restorationId
is preferred. It was added long after keepScrollOffset
. I will double check on this.
); | ||
} | ||
|
||
FixedExtentScrollController controller = FixedExtentScrollController(initialItem: 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this test, to check that keep scroll offset is working, can you check the actual scroll offset, controller.offset? I might check the existing tests for ScrollController.keepScrollOffset for comparison.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, I have updated it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Following up on this, it is fine to pipe this through from the super class. |
Rebasing to unstick the Google testing shard here. |
aad1fbd
to
bc6edeb
Compare
This Google test failed again. Can anyone help investigate? Much appreciated. |
d742a96
to
3d46514
Compare
3d46514
to
2f546f5
Compare
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
…s to the constructor. (flutter/flutter#163190)
This request is to add configurable parameters keepScrollOffset and debugLabel to FixedExtentScrollController.
FixedExtentScrollController.new
is missing parameters present inScrollController.new
#162972Pre-launch Checklist
///
).