aagarwal1012 / aagarwal1012/Liquid-Pull-To-Refresh
Can't pull to refresh when swipe down on non-scrollable objects
- Lenguaje dominante
- Dart
- Estrellas
- 1.3k
- Forks
- 91
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**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
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart, flutter
- Área
- frontend, mobile
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 55/100