-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi, I will answer your questions below directly in the same order. editorKey.currentState!.importStateHistory(ImportStateHistory.fromJson('...'));
editorKey.currentState!.exportStateHistory(configs: ExportEditorConfigs()); You can also see a complete example here. return ProImageEditor.asset(
ExampleConstants.of(context)!.demoAssetPath,
key: editorKey,
callbacks: ProImageEditorCallbacks(
onImageEditingStarted: onImageEditingStarted,
onImageEditingComplete: onImageEditingComplete,
onCloseEditor: onCloseEditor,
),
configs: ProImageEditorConfigs(
customWidgets: ImageEditorCustomWidgets(
colorPickerTextEditor: (setColor) {
return const SizedBox.shrink();
},
),
),
); |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. The second and third points have resolved my issues. Regarding the first point, I understand that in the MoveableBackgroundImageExample, I can use two fingers to manipulate the image. However, more importantly, I hope to be able to enter the editing interface without selecting an image first. The editing interface should initially be a blank canvas where I can choose an image or start drawing after entering. The size of the canvas should be adjustable. Is there a way to achieve this? Thank you! |
Beta Was this translation helpful? Give feedback.
-
This is very helpful, thank you! Now I have a small issue: when adding an image from the gallery, nothing happens after selecting the image. I have to swipe the screen for the image to display. This happens on an Android phone. Screenrecorder-2024-06-11-11-00-47-536.mp4 |
Beta Was this translation helpful? Give feedback.
You can do it like in the example. The only thing you need to change is the part where it creates a transparent background, where you set your background color and size. Below is an example. And I released version
3.0.6
which will resolve an issue when you manually add a layer like we do in the example below.