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

パッケージ詳細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などの既存のスクロールコンポーネントとシームレスに連携し、大幅なコード変更なしに利用可能です。デスクトップおよびWeb環境では、マウス入力が一般的であるため、ネイティブに近いスクロール感覚を提供します。

用途

  • デスクトップおよびウェブアプリのスクロール体験の向上
  • データが多く含まれるインターフェースの使いやすさの向上
  • クロスプラットフォームアプリでのスムーズスクロールの有効化
  • リストおよびグリッドでの正確なマウスナビゲーションのサポート
  • デバイス間で一貫したスクロール動作を追加する

主な機能

  • クロスプラットフォームマウススクロールサポート
  • 既存のスクロール可能なウィジェットとのシームレスな統合
  • 滑らかで応答性の高いスクロールパフォーマンス
  • 必要な最小構成
  • 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 件

ソースリポジトリ

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