FLUTTER ECOSYSTEM

rect_getter

ウィジェットは、レンダリング後に子要素の長方形情報を取得する簡単な方法を提供します。

rect_getter のカバー
最新バージョン
1.1.0
30日間ダウンロード
9900
いいね数
97
Pub ポイント
160

パッケージ概要

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

概要

RectGetter は、レンダリング後に子ウィジェットの長方形の寸法と位置を取得するプロセスを簡略化する Flutter パッケージです。ウィジェットツリー内でオフセット、サイズ、境界などの正確なレイアウト情報をアクセスするための便利な方法を提供します。正確な空間データが必要なタッチ操作検出、アニメーション、UI の整列タスクに最適です。このパッケージは Android、iOS、Web、macOS、Windows、Linux などすべての主要プラットフォームで動作し、ターゲット環境に関係なく一貫した動作を保証します。

用途
  • Gesture-based interactions
  • Dynamic UI positioning
  • Animation triggers based on layout
  • Debugging widget placement
  • Overlay element alignment
主な機能
  • Real-time rectangle data after render
  • Cross-platform compatibility
  • Simple API integration
  • Supports nested widgets
  • Accurate offset and size reporting
適している対象
  • Developers needing layout metrics
  • UI/UX designers implementing interactive layouts
  • Apps with dynamic or responsive interfaces
  • Debugging layout issues
  • Custom gesture detectors
注意事項
  • Requires post-render access to widget tree
  • May impact performance if overused
  • Not suitable for immediate pre-render measurements
  • Limited to visible and rendered children
  • Best used in conjunction with build context
対応プラットフォームAndroidiOSWebmacOSWindowsLinux

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

flutter pub add rect_getter

カテゴリー

ソースリポジトリ

関連プロジェクト