Skip to content

[Question] Is there a possibility to change the erease corner widget? #253

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

You must be logged in to vote

To edit a widget, such as the “remove area” widget, you can use custom widgets as demonstrated below. I recommend using version 6.1.1, as older versions require additional code for full functionality.

configs: ProImageEditorConfigs(
    designMode: platformDesignMode,
    customWidgets: ImageEditorCustomWidgets(
      mainEditor: CustomWidgetsMainEditor(
        removeLayerArea: (removeAreaKey, editor, rebuildStream) {
          return Align(
            alignment: Alignment.bottomCenter,
            child: StreamBuilder(
              stream: rebuildStream,
              builder: (context, snapshot) {
                return Container(
                  key: removeAreaKey,
               …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hm21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #252 on October 31, 2024 12:51.