Strategy for rendering and editing data other than String
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- Dart
- Stelle
- 764
- Fork
- 104
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di reqable/re-editor
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Performance issue: ReEditor hangs when editing large SQL content with 50,000 linesForse già presa @MegatronKing l’ha presa 12 giorni fa. Apertabug
-
Support document-level IME navigation (home/end/select-all) and iFlytek selection expand mode on mobileForse di nuovo libera @MegatronKing l’ha presa 93 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
-
[Feature] 为yaml文件增加缩进指示线Forse di nuovo libera @MegatronKing l’ha presa 105 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
Tutte le issue di reqable/re-editor
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
lugassawan/swe-workbench#799 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
epam/dmtools-dart#385 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
first-timers-only good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Raza-learner/Runmote#11 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
fossasia/badgemagic-app#1991 ·
I maintainer di solito rispondono entro 1 giorno