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

パッケージ詳細v1.27.3

scrollview_observer

ScrollView に表示されている子ウィジェットに関連するデータを監視するためのウィジェットです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
15.3万
いいね数
325
Pub ポイント
160

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

flutter pub add scrollview_observer

パッケージ概要

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

scrollview_observer パッケージは、ScrollView 内で現在表示されている子ウィジェットに関するデータを監視および報告するウィジェットを提供します。開発者は、画面に表示されているアイテム、その位置、可視状態を追跡でき、スクロール動作に基づいた動的なコンテンツの読み込み、分析、UI の調整が可能になります。無限リストの実装、パフォーマンス最適化、またはスクロール可能なインターフェースにおけるリアルタイムフィードバックに最適です。

用途

  • ラジーロード付きの無限スクロール
  • 分析用の可視アイテムの追跡
  • スクロール位置に基づくダイナミックなUIの更新
  • リアルタイムコンテンツレンダリング最適化
  • スクロールベースのアニメーション
  • 長いリストでのパフォーマンスモニタリング

主な機能

  • リアルタイム可視性検出
  • 子ウィジェットの位置追跡
  • 軽量で効率的
  • すべての Flutter プラットフォームをサポートしています
  • 既存の ScrollViews との簡単な統合
  • カスタマイズ可能なコールバックトリガー

適している対象

  • 長いリストまたは無限リストを構築する開発者
  • スクロールベースの論理を必要とするアプリ
  • パフォーマンスに敏感なアプリケーション
  • 分析統合型スクロール可能なUI
  • インタラクティブなスクロール駆動型体験

注意事項

  • 過剰に使用するとパフォーマンスに影響を与える可能性があります
  • コールバックの取り扱いに注意が必要です
  • 単純な静的リストには適していません
  • 直接の ScrollView の子要素に限定
  • 最適化された子ウィジェットと併用するのが最適です
  • 多数の観察者がメモリオーバーヘッドを引き起こす可能性

元の README

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

Flutter ScrollView Observer

author pub stars

Language: English | 中文

This is a library of widget that can be used to listen for child widgets those are being displayed in the scroll view.

☕ Support me

ko-fi wechat

Chat: Join WeChat group

📖 Article

🔨 Feature

You do not need to change the view you are currently using, just wrap a ViewObserver around the view to achieve the following features.

  • [x] Observing child widgets those are being displayed in ScrollView
  • [x] Support for scrolling to a specific item in ScrollView
  • [x] Quickly implement the chat session page effect
  • [x] Support for keeping IM message position when inserting or updating messages, avoiding jitter.

🎀 Support

  • [x] PageView
  • [x] ListView
  • [x] SliverList
  • [x] GridView
  • [x] SliverGrid
  • [x] Mixing usage of SliverPersistentHeader, SliverList and SliverGrid
  • [x] NestedScrollView
  • [x] ScrollView built by third-party package.

🕹 Preview

📦 Installing

Add scrollview_observer to your pubspec.yaml file:

dependencies:
  scrollview_observer: latest_version

Import scrollview_observer in files that it will be used:

import 'package:scrollview_observer/scrollview_observer.dart';

📚 Wiki

🖨 About Me

カテゴリー

ソースリポジトリ

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