Skip to content
pubscout

vs_scrollbar

1.0.0, released 3 years ago by vickysalunkhe.in

Customizable scrollbar for horizontal and vertical lists supporting drag navigation.

WASM-ready
$ flutter pub add vs_scrollbar
Source repository

What it does

A customizable ScrollBar widget that wraps scrollable widgets like ListView, GridView, and SingleChildScrollView. It supports drag navigation for both horizontal and vertical lists, along with customizable thickness, radius, colors, and fade animations.

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

Use it when

  • You need a custom scrollbar for horizontal or vertical lists in Flutter.
  • Users need to drag the scrollbar directly for quick navigation.
  • You want to customize scrollbar thickness, radius, hover effects, and fade durations.

Skip it when

  • You require advanced platform-specific scrollbar features not covered by the properties.
  • You are using a state-management system or alternative that clashes with basic wrapper widgets.

Strengths

  • Supports both horizontal and vertical lists.
  • Allows drag behavior when a ScrollController is provided.
  • Customizable styles including thickness, hover thickness, radius, and color.

Weaknesses

  • Limited to styling properties and fade/hover controllers explicitly exposed by the package.
  • Not documented for platforms other than general Flutter targets.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

VsScrollbar(
   controller: _scrollController,
   style: VsScrollbarStyle(
      thickness: 10.0,
      radius: Radius.circular(10),
   ),
   child: ListView.builder(
      controller: _scrollController,
      itemCount: 6,
      itemBuilder: (context, index) => Container(height: 100),
   ),
)

Alternatives

Packages that do the same job and could replace vs_scrollbar.

Works with

Packages commonly used together with vs_scrollbar: ones it builds on, ones built on it, and its own family.