Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

hacker1024/auto_scroll.dart

Repository files navigation

auto_scroll

A flexible auto-scrolling widget for Flutter.

Features

  • Works with any ScrollView
  • Implicitly animated
  • Responds correctly to widget resizes
  • Imperative manual controls through an AutoScrollController
  • Highly configurable

Usage

Quick start

  1. Import the package

    import 'package:auto_scroll/auto_scroll.dart';
  2. Use the widget with any ScrollView

    final items = [1, 2, 3, 4];

    return AutoScroller(
    lengthIdentifier: items.length,
    anchorThreshold: 24,
    startAnchored: false,
    builder: (context, controller) {
    return ListView.builder(
    controller: controller,
    itemCount: items.length,
    itemBuilder: (context, index) =>
    ListTile(title: Text('Item ${items[index]}')),
    );
    },
    );

Advanced usage

An advanced usage example is provided.

About

A flexible auto-scrolling widget for Flutter.

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Contributors