aagarwal1012 / aagarwal1012/Liquid-Pull-To-Refresh

Can't pull to refresh when swipe down on non-scrollable objects

未关闭
#56 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
1.3k
派生
91
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
The swipe refresh only works for a scrollable object like ListView, SingleChildScrollView. And if "swipe down" performed on a non-scrollable object (Container, Text), the LiquidPullToRefresh not worked.

**To Reproduce**
Steps to reproduce the behavior:
1. Use this code: https://gist.github.com/IkhwanSI13/c38089a2ef6853b837e10a5988ec6475
2. Run the code
3. Swipe down at Container Text

**Expected behavior**
the onRefresh function of LiquidPullToRefresh runs when swiping down at Container Text.

**Flutter:**
- version: 1.22.6
- channel: stable

**Dart:**
- version: 2.10.5

**Additional context**
- liquid_pull_to_refresh: ^2.0.0

贡献指南

打开贡献指南

调研方向

The issue is in the liquid_pull_to_refresh package. Start by examining the gesture detection logic in the main widget, likely in lib/liquid_pull_to_refresh.dart. The provided gist shows a minimal reproduction. Test by running the example and verifying that swipe down on a non-scrollable Container does not trigger onRefresh. Look for conditions that check scrollability. Done when the refresh works on any widget, not just scrollable ones.

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
frontend, mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。