scrolls_to_top 1.0.0 copy "scrolls_to_top: ^1.0.0" to clipboard
scrolls_to_top: ^1.0.0 copied to clipboard

outdated

A dart package for working with scrolls-to-top iOS feature

Scrolls to top #

A dart package for working with scrolls-to-top iOS feature

Why is this needed? This is necessary for those cases when you have several nested Scaffolds or you need to distinguish the tap event in the status bar from other scroll events

Usage #

Just wrap your main Scaffold with ScrollsToTop and provide onScrollsToTop argument

  @override
  Widget build(BuildContext context) {
    return ScrollsToTop(
      onScrollsToTop: _onScrollsToTop,
      child: Scaffold(
        appBar: AppBar(title: const Text('Scroll to top')),
        body: Container(),
      ),
    );
  }

  Future<void> _onScrollsToTop(ScrollsToTopEvent event) async {
    //TODO: Your code
  }
41
likes
0
pub points
94%
popularity

Publisher

verified publisheroptimist.dev

A dart package for working with scrolls-to-top iOS feature

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on scrolls_to_top