搜尋套件、儲存庫與 APP 分類

pointer_interceptor 封面
套件詳情v0.10.1+3

pointer_interceptor

一個用於防止點擊事件被網頁上底層的 HtmlElementView 吞噬的組件。

iOSWeb
近 30 天下載
2230
喜歡數
279
Pub 分數
160

安裝套件

flutter pub add pointer_interceptor

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

pointer_interceptor 套件提供了一個 widget,確保指標事件(例如點擊)不會被 Web 上的底層 HtmlElementViews 吸收。它允許 Flutter widget 在覆蓋 Web 特定元件(如 iframes 或嵌入的 HTML 內容)時仍能接收輸入事件。這對於在混合 Web 應用中維持互動功能特別有用,因為原生 HTML 元素可能會擷取手勢。此套件專為與 Flutter 的 Web 平台無縫整合而設計,並支援 iOS 與 Web 平台。

適用情境

  • 處理 iframe 上的觸控事件
  • 確保按鈕互動在嵌入的網頁內容上正常運作
  • 防止基於 Web 的混合應用程式中的手勢遺失
  • 改進網頁疊加層的可用性
  • 在 HTML 視圖上方啟用可點擊的 UI 元素

主要特色

  • 防止 HtmlElementViews 導致事件被吞沒
  • 用於事件攔截的簡單組件包裝器
  • 跨平台支援 Web 與 iOS
  • 最小設定需求
  • 維持 Flutter 手勢系統的完整性

適合對象

  • 使用嵌入式 HTML 開發 Web 應用的開發人員
  • 在Flutter Web專案中使用iframe的團隊
  • 網頁上需要精確指針控制的應用程式
  • 具有分層互動元件的 UI
  • 在網頁上需要可靠手勢處理的項目

使用建議

  • 僅限網頁和iOS平台
  • 可能需要小心地疊加小部件
  • 在非HTML疊加場景中不需要
  • 性能影響微乎其微但確實存在
  • 在與外部網頁內容互動時最佳使用

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Flutter Packages

Release Status Flutter CI Status

This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled "package".

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the packages hosted in this repository:

Package Pub Points Usage Issues Pull requests
animations pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
camera pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cross_file pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_icons pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
espresso pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
extension_google_sign_in_as_googleapis_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
file_selector pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_lints pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_plugin_android_lifecycle pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg_test pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router_builder pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_adsense pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_fonts pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_maps_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_sign_in pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
image_picker pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
interactive_media_ads pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
in_app_purchase pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
local_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
material_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
metrics_center pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_parsing pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_provider pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pigeon pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pointer_interceptor pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
plugin_platform_interface pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
quick_actions pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_identity_services_web pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
rfw pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
shared_preferences pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
two_dimensional_scrollables pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
url_launcher pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_codec pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_compiler pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
video_player pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
web_benchmarks pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
webview_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
xdg_directories pub package pub points downloads GitHub issues by-label GitHub pull requests by-label

所屬分類

依賴

依賴清單 3 項

  • pointer_interceptor_ios^0.10.0
  • pointer_interceptor_platform_interface^0.10.0
  • pointer_interceptor_web^0.10.0

原始碼儲存庫

使用此套件的專案