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

feat: add new command to get text #1

Merged
merged 2 commits into from
Dec 1, 2024

Conversation

tandt53
Copy link
Contributor

@tandt53 tandt53 commented Nov 30, 2024

Hi @Alpaca00 ,

Thanks for your application and solution with dragAndDropWithCommandExtension. It gave me a hint to fix the issue when getting text from Text widget.
Now I want to add a new command getTextWithCommandExtension to get text from Text widget that contains TextSpan widgets as children.

Hope that it will help other like your code did to me.

I added

  • 1 widget in the body of main.
  • 1 file lib/get_text_command.dart with helper methods to get locator, find element and get the text.
    It works on my local.
demo.mp4

@Alpaca00
Copy link
Owner

Alpaca00 commented Dec 1, 2024

I'm glad the solution was helpful! Your extension for handling TextSpan widgets is a great addition - surely it will benefit others too.

lib/get_text_command.dart Outdated Show resolved Hide resolved
@tandt53 tandt53 requested a review from Alpaca00 December 1, 2024 15:14
@Alpaca00 Alpaca00 merged commit 4d199bd into Alpaca00:master Dec 1, 2024
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

Successfully merging this pull request may close these issues.

2 participants