FLUTTER ECOSYSTEM

drag_down_to_pop

支持拖动向下关闭手势的页面过渡效果。

drag_down_to_pop 封面
最新版本
1.0.0
近 30 天下载
103
喜欢数
29
Pub 分数
140

Package Overview

基于插件公开资料生成的选型评价,仅供参考。

插件概览

一个 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
支持平台AndroidiOSWebmacOSWindowsLinux

安装插件

flutter pub add drag_down_to_pop

所属分类

源码仓库

关联项目

暂无相关数据。