パッケージ、リポジトリ、アプリカテゴリを検索

vs_scrollbar のカバー
パッケージ詳細v1.0.0

vs_scrollbar

水平および垂直リストの両方をサポートする、ドラッグによる高速ナビゲーションに対応したカスタマイズ可能なスクロールバー。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
6770
いいね数
72
Pub ポイント
150

パッケージをインストール

flutter pub add vs_scrollbar

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter用のカスタマイズ可能なスクロールバーで、ドラッグ操作により水平および垂直リスト間を素早くナビゲートできます。すべての主要プラットフォームで滑らかで応答性の高いスクロールインタラクションを提供し、ユーザー体験を向上させます。スクロールバーは異なるスクロール方向に適応でき、アプリの美学に合わせてスタイル設定が可能です。パフォーマンスと柔軟性を重視して設計されており、ListViewやSingleChildScrollViewなどのスクロール可能なウィジェットにシームレスに統合されます。

用途

  • 長いリスト内の素早いナビゲーション
  • アプリにおけるカスタムスクロールバーのデザイン
  • スクロール可能なコンテンツにおけるUXの向上
  • 水平および垂直スクロールの両方をサポート
  • スクロール可能なインターフェースにおけるアクセシビリティの向上

主な機能

  • ドラッグ可能なスクロールバー
  • 水平および垂直スクロールをサポートしています
  • 高度にカスタマイズ可能な外観
  • クロスプラットフォーム互換性
  • スムーズなインタラクションフィードバック
  • 軽量で効率的

適している対象

  • スクロールが多く含まれるアプリを開発する開発者
  • カスタムスクロールインジケータを希望するデザイナー
  • アクセシブルなナビゲーションを必要とするアプリ
  • マルチプラットフォーム Flutter プロジェクト
  • UI中心のアプリケーション

注意事項

  • 最適な見た目を得るには、追加のスタイル設定が必要になる場合があります
  • 非常に大きなリストへのパフォーマンスの影響
  • 制限された組み込みテーマ
  • ミニマルなUIデザインには適していません
  • スクロール可能なウィジェットとの手動統合が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

vs_scrollbar Pub

Customizable ScrollBar that can be dragged for quick navigation supporting both Horizontal and Vertical list.


Table of Contents


Installing

Add to pubspec.yaml file

dependencies:
  vs_scrollbar: ^1.0.0

Import

import 'package:vs_scrollbar/vs_scrollbar.dart';

Package Details

Customizable ScrollBar that can be dragged for quick navigation supporting both Horizontal and Vertical list.

You can customize scrollbar's thickness, radius, set custom colors and handle support for list drag functionality with prebuilt methods of default ScrollBar for Flutter.

Control animation duration of scrollbar using scrollbarTimeToFade, scrollbarFadeDuration properties.

Drag Behaviour with scrollbar is by default supported, if ScrollController object is passed.

Wrap This ScrollBar to any ScrollableList.
SingleChildScrollView
GridView
ListView
Listview.builder

Example

Try out example code all parameters are optional, currently serving basic use case scenarios.

Horizontal List


Vertical List

Code example
// use same scrollController object to listview and scrollbar to support drag functionality
ScrollController _scrollController = ScrollController();

VsScrollbar(
   controller: _scrollController,
   showTrackOnHover: true,// default false
   isAlwaysShown: true, // default false
   scrollbarFadeDuration: Duration(milliseconds: 500), // default : Duration(milliseconds: 300)
   scrollbarTimeToFade: Duration(milliseconds: 800),// default : Duration(milliseconds: 600)
   style: VsScrollbarStyle(
            hoverThickness: 10.0, // default 12.0
            radius: Radius.circular(10), // default Radius.circular(8.0)
            thickness: 10.0, // [ default 8.0 ]
            color: Colors.purple.shade900, // default ColorScheme Theme
          ),
   child: ListView.builder(
             controller: _scrollController, 
             shrinkWrap: true,
             physics: BouncingScrollPhysics(),
             itemCount: 6,
             scrollDirection: Axis.vertical,
             itemBuilder: (BuildContext context, int index) {
                   return Container(
                          height: 100,
                          width: MediaQuery.of(context).size.width,
                          color: Colors.purple[900],
                          margin: EdgeInsets.all(15));
             },
   ),
)

VsScrollbar object properties

Name Type default Description
controller ScrollController null Controller for Scrollbar
scrollbarFadeDuration Duration Duration(milliseconds: 300) Sets scrollbar fade animation duration
scrollbarTimeToFade Duration Duration(milliseconds: 600) Fades scrollbar after certain duration
isAlwaysShown bool false controls visibility of scrollbar when ideal
showTrackOnHover bool false controls visibility of scrollbar while hovering
style VsScrollbarStyle VsScrollbarStyle() Style Class for VsScrollBar

VsScrollbarStyle object properties

Name Type default Description
color Color System ColorScheme Theme ScrollBar Color
radius Radius Radius.circular(8.0) Set Radius of ScrollBar
thickness double 8.0 Set Thickness of ScrollBar
hoverThickness double 12.0 Set Hover Thickness of ScrollBar

Pull request and feedback are always appreciated :)


Show some :heart: and star the repo.

GitHub followers Twitter Follow


:heart: Found this project useful?

If you found this project useful, then please consider giving it a :star: on Github and sharing it with your friends via social media.



カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト