Is it possible to trigger an action when the slide is scrolled to full extent? (like Gmail)

Abierto
#431 1 comentario 7 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
dart, flutter
Área
mobile

Línea de trabajo

The request is about the Slidable widget's swipe-extent behaviour: firing a callback when the drag reaches full extent without dismissing the item. Start from how Slidable exposes its action panes and drag extent, and check whether an existing callback or extent-ratio hook already covers this. Done means a clear answer on whether the behaviour is achievable with the current API, or a proposed API change with maintainer agreement; the thread is a single unanswered question, so expect design discussion first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hello @letsar & guys that want to help!

First, congratulations on developing such a wonderful library of "flutter_slidable", that's exactly what I personally need.

Now, let's go to the question.

Is it possible to configure an action to be automatically triggered when we scroll the slide until the end?

Important Note: I don't want to remove/delete the item that I scrolled, I just wanna trigger an action on the item that I scrolled.

On Gmail for example, if we scroll the slide to the right at full extent, it automatically execute the action to Archive that email message.

https://github.com/letsar/flutter_slidable/assets/7637806/c37a4c53-4862-4399-ad6b-28ac73721284

↑ However, as we can see on the above video, doing that in gmail removes the item that is scrolled and I don't want that. I want the item to remain there visible and execute an action on that item.

How can I do that with the flutter_slidable widget?

Thank you very much for your time and support in case you answer that! 👏

Lenguaje dominante
Dart
Estrellas
2.9k
Forks
646
Merge medio
5 min
PR fusionados (30 d)
9

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de letsar/flutter_slidable

Todos los issues de letsar/flutter_slidable

Issues similares

Más issues de Dart

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.