Skip to content
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

A function that can be copied when a character is tapped #71

Closed
naokikotani opened this issue Mar 5, 2021 · 1 comment
Closed

A function that can be copied when a character is tapped #71

naokikotani opened this issue Mar 5, 2021 · 1 comment

Comments

@naokikotani
Copy link

I would like to copy text like RichText.

@santa112358
Copy link
Owner

Hi @naokikotani, thank you for the request.
I recommend you to use SelectableText.rich and getHashtagTextSpan

SelectableText.rich(
  getHashTagTextSpan(
    decoratedStyle:
        TextStyle(fontSize: 22, color: Colors.black),
    basicStyle: TextStyle(fontSize: 22, color: Colors.blue),
    source: "#Hello World",
  ),
)

You can implement hashtagText with copying feature by this code.
If you have any questions, please reopen this issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants