-
Please use the discuss tab to ask a question.Hi, I have 4 questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Hi, I moved your questions to the Discuss tab because that tab is better for Q&A that users can quickly find the best answer to their questions ;) Anyway, below are the answers to your questions.
var history = await editorKey.currentState!.exportStateHistory(
configs: const ExportEditorConfigs(
historySpan: ExportHistorySpan.all,
exportPainting: true,
exportText: true,
exportCropRotate: true,
exportFilter: true,
exportEmoji: true,
exportSticker: true,
),
);
await history.toJson();
/// Other options
/// await history.toFile(path: 'file-path');
/// await history.toMap();
|
Beta Was this translation helpful? Give feedback.
-
Thank you for quick response. I think you didn't completely get my point:
and how can I dynamically change imagePath, because I tried
but it doesn't help
|
Beta Was this translation helpful? Give feedback.
-
Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi, I use version 4.0.4
In the console I see that image path is correct, but the background image doesn't change still. |
Beta Was this translation helpful? Give feedback.
-
It works. |
Beta Was this translation helpful? Give feedback.
Question 1
Okay, a bit confusing, but I will answer step by step. I think this will help you the most.
Yes, you can add the image from
file
,network
,asset
andmemory
. The result will always be as Uint8List even if you use as examplenetwork
because the editor can't write directly to these options. However, if you want to save your image as File, you can do it as below: