패키지, 저장소 및 앱 카테고리 검색

vs_scrollbar 표지
패키지 상세v1.0.0

vs_scrollbar

수평 및 수직 목록을 모두 지원하는 사용자 정의 가능한 스크롤바로, 빠른 탐색을 위해 드래그할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
6.8천
좋아요
72
Pub 점수
150

패키지 설치

flutter pub add vs_scrollbar

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

드래그를 통해 수평 및 수직 목록을 빠르게 탐색할 수 있는 플러터용 사용자 정의 가능한 스크롤바입니다. 모든 주요 플랫폼에서 부드럽고 반응성이 뛰어난 스크롤 인터랙션을 제공하여 사용자 경험을 향상시킵니다. 스크롤바는 다양한 스크롤 방향에 적응 가능하며 앱의 미적 요소와 일치하도록 스타일링할 수 있습니다. 성능과 유연성을 고려해 제작되었으며, ListView 및 SingleChildScrollView와 같은 스크롤 가능한 위젯에 원활하게 통합됩니다.

사용 사례

  • 긴 목록에서의 빠른 탐색
  • 앱에서의 사용자 정의 스크롤바 디자인
  • 스크롤 가능한 콘텐츠에서 UX 향상
  • 수평 및 수직 스크롤링 모두 지원
  • 스크롤 가능한 인터페이스에서 접근성 향상

주요 기능

  • 드래그 가능한 스크롤바
  • 수평 및 수직 스크롤을 지원합니다
  • 높은 사용자 정의 가능한 외관
  • 크로스 플랫폼 호환성
  • 부드러운 상호작용 피드백
  • 경량이고 효율적

적합한 대상

  • 스크롤이 많은 앱을 개발하는 개발자
  • 사용자 정의 스크롤 인디케이터를 원하는 디자이너
  • 접근성 있는 탐색이 필요한 앱
  • 다중 플랫폼 Flutter 프로젝트
  • 사용자 인터페이스 중심 애플리케이션

고려 사항

  • 최적의 외관을 위해 추가 스타일링이 필요할 수 있습니다
  • 매우 큰 목록에 대한 성능 영향
  • 제한된 내장 테마
  • 최소한의 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.



카테고리

소스 저장소

이 패키지를 사용하는 프로젝트