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

패키지 상세v1.0.7

dyn_mouse_scroll

모든 플랫폼에서 마우스로 부드럽게 스크롤할 수 있도록 해주는 스크롤 가능한 위젯용 래퍼입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
749
좋아요
42
Pub 점수
145

패키지 설치

flutter pub add dyn_mouse_scroll

패키지 개요

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

dyn_mouse_scroll은 Android, iOS, Web, macOS, Windows, Linux를 포함한 모든 플랫폼에서 부드럽고 일관된 마우스 스크롤을 가능하게 하기 위해 스크롤 가능한 위젯을 래핑하는 Flutter 패키지입니다. 마우스 사용 시 반응성 있고 유연한 스크롤 동작을 제공함으로써 사용자 경험을 향상시킵니다. ListView, ScrollViewController 등 기존의 스크롤 컴포넌트와 함께 원활하게 작동하며, 코드 변경이 거의 필요하지 않습니다. 데스크톱 및 웹 환경에서는 마우스 입력이 일반적이므로 네이티브처럼 느껴지는 스크롤 감각을 보장합니다.

사용 사례

  • 데스크톱 및 웹 앱 스크롤 경험 향상
  • 데이터가 많은 인터페이스의 사용성 향상
  • 크로스 플랫폼 앱에서 부드러운 스크롤링 활성화
  • 목록 및 그리드에서 정밀한 마우스 탐색 지원
  • 장치 간에 일관된 스크롤 동작 추가

주요 기능

  • 크로스 플랫폼 마우스 스크롤 지원
  • 기존 스크롤 가능한 위젯과의 원활한 통합
  • 부드럽고 반응성이 뛰어난 스크롤 성능
  • 필수 최소 구성
  • ListView, GridView 및 기타 스크롤 가능한 요소와 함께 작동

적합한 대상

  • 크로스플랫폼 앱을 개발하는 개발자
  • 데스크톱 및 웹 사용자를 대상으로 하는 앱
  • 긴 목록이나 복잡한 스크롤 가능한 콘텐츠를 가진 UI
  • 다양한 기기 간에 일관된 UX를 우선시하는 팀

고려 사항

  • 모바일 기기에서 추가 테스트가 필요할 수 있습니다
  • 터치 기반 스크롤링에 대한 영향은 제한적
  • 터치 입력에만 의존하는 앱에는 필요하지 않음
  • 자주 마우스 상호작용이 필요한 애플리케이션에 적합
  • 매우 큰 데이터 세트에서 성능 오버헤드 가능성

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Dynamic Mouse Scroll

A wrapper for scrollable widgets that enables smooth scrolling with a mouse on all platforms.

First gif: Scrolling slowly.
Second gif: Scrolling quickly (flick scroll).
Third gif: Mobile drag scroll detected, physics change.

Features

  • Animate smooth scroll based on speed of user's scroll.
  • Uses universal_io to detect if platform is mobile or desktop.
  • Automatically detect if the wrong ScrollPhysics is being used and update using provider.
  • Adjust the duration of your scroll events.
  • Choose what mobile physics you would like to use.

Basic Usage

DynMouseScroll(
  builder: (context, controller, physics) => ListView(
    controller: controller,
    physics: physics,
    children: ...
    )
)

Problem:

Flutter does not animate smooth scrolls for pointers, causing choppy experiences for the end user. One package, web_smooth_scroll, attempts to fix this problem by disabling default scrolling entirely (mobile can't drag now) and listening for pointer events to animate the scroll controller that can only move at one speed.

Solution:

To allow mobile default scrolling to still be accessible I detect the user's platform and automatically update if the detection was wrong. When the user scrolls, the 'futurePosition' variable is updated and the animation is started.

카테고리

의존성

의존성 목록 2 개

소스 저장소

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