Closed vishaldhudum closed 5 years ago
Would a textKey
which is being passed to the actual Text
widget solve your problem?
Yes it will.
Okay, I'll implement that asap. You can also create a pull request if you need it faster 👍
I have updated and used as local library. I see you have already updated the code. Please update here once you release it. Thanks
Before I can publish it, I want to create a few more tests. I'll close this issue once the new version is live.
I just published a new version: https://pub.dev/packages/auto_size_text/versions/2.1.0
Is your feature request related to a problem? Please describe. AutoSizeText has a key, but using the key we cannot get text in Integration test. As
await driver.getText(finder)
can get text from a Text type widget and not from custom widget which is not a subtype of text.Though we can do
await driver.waitFor(find.text("text"));
but this is not appropriate as a page can have multiple places with same text and it is best to find text using a key finder.Describe the solution you'd like Passing a separate key parameter in AutoSizeText widget for the Text widget defined inside AutoSizeText library can let us find the text from the key for Text widget.
Version
Error: