Skip to content
pubscout

draggable_scrollbar

0.1.0, released 6 years ago by fluttercommunity.dev

A draggable scrollbar for quickly navigating vertical lists with optional labels.

WASM-ready
$ flutter pub add draggable_scrollbar
Source repository

What it does

Provides a custom scrollbar widget that users can drag to quickly scroll through vertical lists. It supports built-in scroll thumb styles like semicircle, arrows, and rounded rectangles, and can display labels next to the thumb showing current item information.

AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need fast navigation through long vertical lists or grids.
  • You want to show contextual item labels next to the scroll thumb during dragging.

Skip it when

  • You only need the standard non-draggable platform scrollbar behavior.
  • You are building horizontal lists.

Strengths

  • Includes multiple built-in scroll thumb styles (semicircle, arrows, rounded rectangle).
  • Supports custom scroll thumb builders and label text generation.
  • Null-safe support.

Weaknesses

  • Limited to vertical scrolling lists and grids.
  • Few recent updates documented beyond null safety.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
DraggableScrollbar.rrect(
  controller: myScrollController,
  child: ListView.builder(
    controller: myScrollController,
    itemCount: 1000,
    itemExtent: 100.0,
    itemBuilder: (context, index) {
      return Container(
        child: Center(
          child: Text(index.toString()),
        ),
      );
    },
  ),
);

Alternatives

Packages that do the same job and could replace draggable_scrollbar.