feat(FixedExtentScrollController): Add parent class properties to the constructor.#163190
Conversation
|
Could you take some time to review this request? cc @Piinks |
Piinks
left a comment
There was a problem hiding this comment.
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.
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.
Of course, I have updated it.
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)
… constructor. (flutter#163190) This request is to add configurable parameters keepScrollOffset and debugLabel to FixedExtentScrollController. - Fixes flutter#162972 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
This request is to add configurable parameters keepScrollOffset and debugLabel to FixedExtentScrollController.
FixedExtentScrollController.newis missing parameters present inScrollController.new#162972Pre-launch Checklist
///).