The reason is that you're calling an imageview builder on the toolbar, thus creating and adding the ImageView to the toolbar instead :) Avoid using the imageview builder as a parameter to the button builder, and instead simply instantiate it normally: ImageView(params).
I know this might seem confusing at first, and I would love to plug this hole so that this wouldn't be possible, but I can't think of a way we can avoid this, as imageview is available as a builder as long as you're inside any Node.
Once you're aware of this and understands the issue it should be easy to avoid in the future though :) Does that make sense?
@edvin Ah I see, makes sense now. Thanks for your support!
My pleasure :)
Most helpful comment
The reason is that you're calling an
imageviewbuilder on the toolbar, thus creating and adding the ImageView to the toolbar instead :) Avoid using theimageviewbuilder as a parameter to thebuttonbuilder, and instead simply instantiate it normally:ImageView(params).I know this might seem confusing at first, and I would love to plug this hole so that this wouldn't be possible, but I can't think of a way we can avoid this, as
imageviewis available as a builder as long as you're inside any Node.Once you're aware of this and understands the issue it should be easy to avoid in the future though :) Does that make sense?