menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Zefyr

Zefyr rich text editor for Flutter applications

Channels
Team

Retriving the data without editor?

July 5, 2020 at 8:05pm

Retriving the data without editor?

July 5, 2020 at 8:05pm
The documentation shows how to load data from storage but i saved on firebase and want to retrieve the document field and show it in a container without the editor.Is there a way to do it?

July 10, 2020 at 10:35am
I have the same question. I would dig-into the code to make it happen, but if its already a feature, would be nice to know :P Thanks for this, BTW. I think this will be an extremely popular and mainstream package in no time!

July 13, 2020 at 1:08pm
yes,I found a way
ZefyrView(
document: _loadDocument(),
)),
NotusDocument _loadDocument() {
return NotusDocument.fromJson(jsonDecode(content));//content is a variable i declared to retrieve the document from firebase.
}
Edited

July 14, 2020 at 9:27pm
very nice. I have seen that method in the docs after i posted; however, i am still trying to do it from the ZefyrScaffold and having a ton of heartache (actually from the editor example now...) I can Save the data to firebase, reading it in is proving to be something all together different. Any ideas that the community has are welcomed!
Edited

July 27, 2020 at 8:49pm
did yoou fix it?

September 1, 2020 at 12:02pm
I used this method however I am trying to shrink it into a small view and it doesn't want to budge