feature: For ft. DragTarget() component adds event throttling,Very important
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- flutter, python
- 領域
- frontend, performance
調査の方向性
まず、Python と Flutter の通信経路全体で、ft.DragTarget() の on_move および on_accept イベントと、ft.Draggable() の on_drag_complete イベントを追跡します。イベントのスロットリングがどのように機能すべきかを定義します。特に、1 回だけ発生する on_accept の結果を on_move の更新から独立させます。複雑なドラッグアンドドロップページが応答性の高い更新を受け取り、最終的な受け入れまたは完了イベントを遅延させないことを完了条件とします。
索引モデルが issue の本文から書いたものです。
説明
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the requested feature
The dragging of the ft.Draggable() component is very smooth, but due to the communication latency between Python and Flutter, the data return of the on_move and on_accept events of the ft.DragTarget() component, as well as the on_drag_complete event of the ft.Draggable() component, suffers from very severe delays in complex page scenarios. This directly impairs the usability of the components. I hope to add throttling to the returned data of these events—for example, returning data every xx milliseconds—which can greatly improve the usability of the components. This provides a very powerful improvement for smooth usage. Ideally, the data return of the on_accept event should be isolated from the on_move event, because on_accept only needs to return data once, whereas on_move needs to return data in real time. Currently, the on_accept data return delay is very serious, and I suspect it is affected by the on_move delay.
This is a very important optimization, as it can deliver a very smooth experience with the simplest adjustment.
Suggest a solution
No response
Screenshots
No response
Additional details
No response
- 主要言語
- Python
- スター
- 17.1k
- フォーク
- 708
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 46
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
flet-dev/flet のほかの issue
-
bug controls
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug: Interactive Viewer renders grey text when passed alignment対応中かも @ndonkoHenri が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
flet-dev/flet#6744 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
feature request
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
letsencrypt/cp-cps#353 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
PedestrianDynamics/pyFDS-Evac#394 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DOI-USGS/pywatershed#421 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
python-pillow/Pillow#10087 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信