Skip to content

How can I add a border to the inner canvas/editor? #211

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

You must be logged in to vote

Ah, got it you would like to mark an area on the image where the user should add text, rather than marking the image border, correct? If so, you can customize the editor configurations by adding customWidgets, as shown in the example below.

configs: ProImageEditorConfigs(
    designMode: platformDesignMode,
    customWidgets: ImageEditorCustomWidgets(
      mainEditor: CustomWidgetsMainEditor(
        bodyItems: (editor, rebuildStream) {
          return [
            ReactiveCustomWidget(
              stream: rebuildStream,
              builder: (_) => Center(
                child: Container(
                  width: MediaQuery.of(context).size.width * 0.7,
                  height: M…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@edwarddubi
Comment options

@edwarddubi
Comment options

@hm21
Comment options

Answer selected by edwarddubi
@edwarddubi
Comment options

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