Skip to content

[Question] How to change Loading Dialog onImageEditingComplete #250

Answered by hm21
bacuong312 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use customWidgets in the configuration settings to create your own dialog, as demonstrated below:

ProImageEditor.asset(
  ExampleConstants.of(context)!.demoAssetPath,
  key: editorKey,
  callbacks: ProImageEditorCallbacks(
    onImageEditingStarted: onImageEditingStarted,
    onImageEditingComplete: onImageEditingComplete,
    onCloseEditor: onCloseEditor,
  ),
  configs: ProImageEditorConfigs(
    customWidgets: ImageEditorCustomWidgets(
      loadingDialog: (message, configs) => Stack(
        children: [
          ModalBarrier(
            onDismiss: kDebugMode ? LoadingDialog.instance.hide : null,
            color: Colors.black54,
            dismissible: kDebugMode,
        …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bacuong312
Comment options

Answer selected by bacuong312
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants