I'm having issues when testing a component that has an icon widget inside which icon property can be passed by parameter. Under this conditions if I set a ValueKey value for testing the component the icon component inside also gets the same ValueKey. Which makes testing harder since now there are two widgets with the same ValueKey instead of just one. This is a bug, right?
Icon passed by parameter duplicates ValueKey
Widgets & Design
This is the component I'm creating:
icon
is one of the component parameters:
And then when setting setting a ValueKey (automatically set if not set but a test does a check on the component).
Yes
2