Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Can I change the transparency of all handwriting uniformly? #55

Closed
iOSyan opened this issue May 24, 2024 · 10 comments
Closed
Labels
question Further information is requested

Comments

@iOSyan
Copy link

iOSyan commented May 24, 2024

Can I change the transparency of all handwriting uniformly?
Also, when I save the currently edited image, can I modify the previous edits the next time I open it?
thx!

@iOSyan iOSyan added the question Further information is requested label May 24, 2024
@hm21
Copy link
Owner

hm21 commented May 24, 2024

Yes, you can export the state history and import that state history the next time, allowing you to change the previous edits. The example in the dev branch here shows you how to do it.

@hm21 hm21 closed this as completed May 24, 2024
@iOSyan
Copy link
Author

iOSyan commented May 24, 2024 via email

@hm21
Copy link
Owner

hm21 commented May 24, 2024

Currently, it's not possible to change the transparency from the drawing. However, I have put it on my roadmap here and will release it with the new version 3.0.0 which allows you to set the opacity.

@iOSyan
Copy link
Author

iOSyan commented May 24, 2024

Okay, thank you very much. My current project requirement is to adjust the transparency of all handwriting, including those that have already been drawn. Do I currently have any methods to implement this feature?

@hm21
Copy link
Owner

hm21 commented May 24, 2024

Currently, there's no way to do this. But I can try to add this feature for you.
If you have multiple drawings, do you need to set a different opacity for each drawing or the same opacity for all?

@iOSyan
Copy link
Author

iOSyan commented May 24, 2024

You are so kind, thank you so much!
I just reviewed the project requirements again and found that this requirement is not currently required. Sorry~~~~

@iOSyan
Copy link
Author

iOSyan commented May 26, 2024

Sorry to bother you again.
Is it possible to listen to the text input by the user when using the text function? (The project needs to process the text input by the user). For example, covertly converting the user's input of '#1' to blue. (the user cannot notice this change through the app).

Thank you very much.

@hm21
Copy link
Owner

hm21 commented May 27, 2024

Currently, it's not possible to listen to the text input field. However, I will add a callback for you where you can listen to it. I can't say exactly when I'll have time to do it, but I'll definitely do it today and text you here after I upload it. I will also post then an example of how you can listen to it.

@hm21
Copy link
Owner

hm21 commented May 27, 2024

Okay, I have now released version 3.0.0-dev.17 where you can listen to a callback like the one below.

ProImageEditor.asset(
      'demo.jpg',
      key: editorKey,
      callbacks: ProImageEditorCallbacks(
        textEditorCallbacks: TextEditorCallbacks(
          onChanged: (value) {
            print(value);
          },
          onEditingComplete: () {
            print('onEditingComplete');
          },
          onSubmitted: (value) {
            print(value);
          },
        ),
    ),
)

Btw, if you have any further questions, I'd appreciate it if you could initiate a new Q&A thread in the discuss-tab. This would be beneficial for other users, allowing them to find answers to similar questions directly.

@iOSyan
Copy link
Author

iOSyan commented May 28, 2024

Thank you so much!!
And if I have any further questions, I will initiate a new Q&A thread in the discuss-tab.

Repository owner locked and limited conversation to collaborators Jun 14, 2024
@hm21 hm21 converted this issue into discussion #95 Jun 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants