-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide documentation on how to work with JSON data #19
Comments
I also added the Scaffold so you can push to the widget with a full-screen dialog to edit the text. String notes = "";
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => MyWidget(
json: notes,
),
fullscreenDialog: true,
),
).then((result) {
if (result != null) notes = result;
}); |
Thanks for submitting this issue. I agree, docs and examples are pretty basic at this point. I'll make sure to add more information on how to work with JSON for the next release. |
@pulyaevskiy awesome thanks! It works great by the way. Using it in an app already. There needs to be a better way in flutter just to view a Notus document and not edit it. |
A simple way to achieve similar effect is to construct ZefyrEditor with |
@pulyaevskiy awesome will do! |
Using the example didn't help much for loading and saving data from JSON. Here is the code I used to get it working.
This will auto-insert text into Notus document for backwards compatibility of data stored as plain text and will handle errors too.
The text was updated successfully, but these errors were encountered: