Subsequent row is open after Slidable row is dismissed.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The payload names the Slidable, SlidableController, ActionPane and DismissiblePane widgets, but no source files. Start by running the linked reproduction project (github.com/adammal/slidable_dismiss_problem) and confirming that the next row opens only when a shared controller is passed. Done means a dismissed row leaves the remaining rows closed with the controller set, plus a regression test.
索引モデルが issue の本文から書いたものです。
説明
Hello and thank you for the great library.
I've stumbled upon an issue in flutter_slidable: ^3.1.0 when dismissing a row and I've created a minimal project to reproduce it in-case it's helpful.
https://github.com/adammal/slidable_dismiss_problem
https://github.com/letsar/flutter_slidable/assets/6067137/ae867063-9004-4d1e-8572-1d48742aa899
Action
The user slides to dismiss a row in a series of Slidable rows.
Expected Behaviour
The row is dismissed and all remaining rows remain closed.
Actual Behaviour
The row is dismissed but the subsequent row is opened and remains open after the dismissal is complete.
Notes
I've also discovered that this is only an issue when a SlidableController is assigned to the Slideable's by the user.
If I remove the controller from the Slidable it works as expected.
Code in question
Slidable(
key: UniqueKey(),
controller: _slidableController,
endActionPane: ActionPane(
motion: const ScrollMotion(),
dismissible: DismissiblePane(
onDismissed: () => widget.onDelete(widget.value),
),
children: [
SlidableAction(
onPressed: (context) => widget.onDelete(widget.value),
label: 'Delete',
)
],
),
child: Container(
constraints: const BoxConstraints(
minHeight: 50,
minWidth: double.infinity
),
color: Colors.blue,
child: Center(child: Text(widget.value.toString())),
),
),
Am I doing something wrong in the way i've implemented this?
Any help would be greatly appreciated.
- 主要言語
- Dart
- スター
- 2.9k
- フォーク
- 646
- 平均マージ
- 5分
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
letsar/flutter_slidable のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
letsar/flutter_slidable#563 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
letsar/flutter_slidable#549 ·
メンテナーはふだん 1 日以内に返信
-
Lock action-pane intent for a continuous drag until neutral settle対応中かも @lukemmtt が 194 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
letsar/flutter_slidable#546 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
letsar/flutter_slidable#541 ·
メンテナーはふだん 1 日以内に返信
-
Example is not runnable on android対応中かも @akhil-ge0rge が 351 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 18/100
letsar/flutter_slidable#540 ·
メンテナーはふだん 1 日以内に返信
letsar/flutter_slidable の issue をすべて見る
似ている issue
-
check-relative-paths reports links to existing directories as missing対応中かも @reidbaker-agent が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google/skills_lint.dart#202 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
a: tests c: proposal p: cupertino_ui p: material_ui package team-design
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
flutter/flutter#195936 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bannzai/medicalarm#506 ·
メンテナーはふだん 1 日以内に返信