Skip to content

adds initialOffset to LinkedScrollController #304

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

werainkhatri
Copy link

@werainkhatri werainkhatri commented Nov 8, 2021

Description

Enables users to set the initial offset to LinkedScrollControllerGroup.

Code Sample:

LinkedScrollControllerGroup controllers = LinkedScrollControllerGroup(initialOffset: -100);

Related Issues

Fixes #267

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I signed the CLA.
  • All tests from running flutter test pass.
  • flutter analyze does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

@google-cla google-cla bot added the cla: yes CLA has been signed by all contributors label Nov 8, 2021
@werainkhatri werainkhatri changed the title adds initialOffset and tests adds initialOffset to LinkedScrollController Nov 8, 2021
@ted-marozzi ted-marozzi mentioned this pull request Sep 1, 2022
@mhoeckner
Copy link

Would be nice to see this PR in future merge

@Paulcappaert
Copy link

If someone could merge this that would be awesome.

@Paulcappaert
Copy link

Paulcappaert commented Dec 18, 2022

My un-ideal solution for now is to call jumpTo on the controller in a method that runs after the widget finishes rendering, like this https://github.com/fluttercommunity/flutter_after_layout/blob/master/lib/after_layout.dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA has been signed by all contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] set initial position to LinkedScrollController
3 participants