Strategy for rendering and editing data other than String
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
Start by reading the mentioned CodeLines class and _CodeLineEditingControllerImpl to understand how lines, spans, and editing state are currently represented. Define the required mapping between rendered lines, edits, and backing MyEntry objects before deciding whether the controller or CodeLines API should change; the issue does not specify an implementation or completion criteria.
索引モデルが issue の本文から書いたものです。
説明
Hi, thanks for creating an awesome package. I'm trying to find best way to maintain editing state of my custom class instead of String. It could potentially be represented by String, but when viewing and modifying it I would like the CodeLines object be aware of the backing data.
For instance in pseudo code my class could be:
class MyEntry {
final DateTime date;
final String message;
final String tag;
final Map<String,String> metadata;
String toString() => '$date $tag $message $jsonEncode(metadata)';
}
And then I would like to render the toString() representation. When user would modify any part of the string, I would like to receive a callback e.g. with a editing position or any other trace that could let me modify the backing object. When rendering a TextSpan I would love to get access to the corresponding MyEntry object so that I can style the span to my needs. I can assume that each MyEntry would be rendered in a separate line.
I would like to avoid parsing the String in the spanBuilder as the data will be parsed prior to rendering.
I don't think this is a valid feature request for the package itself, but I'm happy to either fork or re-implement any classes that could allow me to achieve this experience.
What would you recommend in such case? Should I implement my own CodeLineEditingController based on _CodeLineEditingControllerImpl and extend CodeLines with a reference to MyEntry?
- 主要言語
- Dart
- スター
- 763
- フォーク
- 103
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
reqable/re-editor のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Performance issue: ReEditor hangs when editing large SQL content with 50,000 lines対応中かも @MegatronKing が 17 日前に担当しました。 オープンbug
-
Support document-level IME navigation (home/end/select-all) and iFlytek selection expand mode on mobile再び着手できるかも @MegatronKing が 98 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
-
[Feature] 为yaml文件增加缩进指示线再び着手できるかも @MegatronKing が 110 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
reqable/re-editor の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AimesSoft/NipaPlay-Reload#1021 ·
メンテナーはふだん 1 日以内に返信
-
enhancement triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
fluttercommunity/plus_plugins#4004 ·
メンテナーはふだん 1 日以内に返信
-
agent:ready bug P2 · 中 健壮性 区域: 启动与合规 待验证 隐私与合规
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ASDW51/DanmuFloat#106 ·
メンテナーはふだん 1 日以内に返信
-
c: proposal p: go_router package team-ecosystem
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
flutter/flutter#194542 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100