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

オープン
#431 コメント 1 件 リアクション 7 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
dart, flutter
領域
mobile

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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! 👏

主要言語
Dart
スター
2.9k
フォーク
646
平均マージ
5分
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

letsar/flutter_slidable のほかの issue

letsar/flutter_slidable の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。