We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This package gives some crazy scrolling animation (looks like a big number of items has been scrolled, but it's only a few):
late final ItemScrollController _itemScrollController; @override void initState() { super.initState(); _itemScrollController = ItemScrollController(); WidgetsBinding.instance.addPostFrameCallback((_) { if (controller.mode == TaskScreenMode.edit) { unawaited( _itemScrollController.scrollTo(index: controller.icon.index, duration: 400.ms), ); } }); ScrollablePositionedList.separated( itemScrollController: _itemScrollController, padding: horizontalPadding, scrollDirection: Axis.horizontal, itemBuilder: (_, index) { ... }
Compare it to the standard library ScrollController animation:
_iconsSc = ScrollController(); WidgetsBinding.instance.addPostFrameCallback((_) { if (controller.mode == TaskScreenMode.edit) { _iconsSc.animateTo(52.0 * controller.icon.index, duration: 400.ms, curve: Curves.linear); } }); ListView.separated( controller: _iconsSc, ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This package gives some crazy scrolling animation (looks like a big number of items has been scrolled, but it's only a few):
bad.scroll.mp4
Compare it to the standard library ScrollController animation:
good.scroll.mp4
The text was updated successfully, but these errors were encountered: