套件概覽
一個 Flutter 套件,可啟用下拉返回頁面的拖曳手勢,允許使用者透過向下拖動螢幕來導航返回。它透過提供直覺且流暢的方式關閉頁面,從而提升使用者體驗,特別適用於全螢幕或沉浸式介面。此套件支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,確保在各種裝置上行為一致。它與 Flutter 的 Navigator 無縫整合,並可與標準頁面路由搭配使用。
適用情境
- Immersive full-screen views
- Custom back gestures in modal dialogs
- Enhanced navigation in card-based UIs
- Smooth dismissal of bottom sheets
- Interactive onboarding flows
- Gesture-driven app navigation
主要特色
- Drag-down-to-pop gesture support
- Cross-platform compatibility
- Seamless integration with Navigator
- Minimal setup required
- Supports custom animation curves
- Works with nested navigators
適合對象
- Developers building gesture-rich apps
- Designers seeking intuitive navigation
- Apps with full-screen content
- Modal and overlay interfaces
- Mobile-first applications
使用建議
- May conflict with other vertical gesture detectors
- Requires careful handling in nested navigators
- Not ideal for scrollable content with vertical swipes
- Limited customization for complex animations
- Best suited for single-level navigation stacks
