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

套件詳情v2.0.0

swipe_back_detector

用於在自訂路由或非Cupertino路由中新增「向左滑動返回」功能的偵測器。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1400
喜歡數
15
Pub 分數
160

安裝套件

flutter pub add swipe_back_detector

套件介紹

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

SwipeBackDetector 是一個 Flutter 套件,可在自訂路由中啟用滑動返回功能,即使在非 Cupertino 路由中也能提供類似原生的返回手勢體驗。它適用於所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。此檢測器可無縫整合至任何路由或頁面中,讓使用者能透過從螢幕邊緣滑動來返回上一頁。對於具有自訂導航流程的應用程式來說非常理想,能提升易用性,而無需複雜的實作。該套件輕量且專為尋求直覺導航手勢的開發者設計。

適用情境

  • 自定路由導航
  • 非庫比蒂諾導航流程
  • 透過滑動手勢增強使用者體驗
  • 跨平台手勢支援
  • 在網頁應用中實現邊緣滑動返回
  • 為模態螢幕添加向左滑動返回功能

主要特色

  • 邊緣滑動檢測
  • 適用於自定義路由
  • 跨平台相容性
  • 輕量且易於整合
  • 支援多個平台
  • 可設定的手勢靈敏度

適合對象

  • 開發人員建構自定導航
  • 需要在非 Cupertino 路由上滑動返回的應用
  • 面向多個平台的專案
  • 以使用者體驗為導向的行動與網路應用
  • 希望擁有原生類似的手勢,但不需要Cupertino

使用建議

  • 可能與其他手勢檢測器衝突
  • 在嵌套導航器中需要謹慎處理
  • 與某些第三方路由解決方案不相容
  • 手勢行為的自訂選項有限
  • 需要在所有目標平台上進行測試
  • 使用大量小部件可能影響效能

原始 README

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

swipe_back_detector

A detector to add "swipe to go back" functionality in custom routes or non cupertino routes.

Attributes

  • child: is the child to wrap with the pop gesture detector
  • cutoffVelocity: is the minimum velocity needed for the gesture to trigger
  • swipeAreaWidth: is the width of the detection area
  • verticalPadding: allows to restrict the detection area remaining vertically centered
  • popValue: is the value you want to pop out when performing a gesture

Todos:

  • [ ] Add RTL support

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。