You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But we can only put these HTML childrens in one place in our widget tree.
Now if we wants to implement a tab bar element with Flutter widgets, and we wants to use HTML tags to implement tab bar's header and body. We needs pass two chunk of HTML tags in to element, but we only have one place.
For Flutter widget elements, we can add any HTML elements as children of widget elements:
Exp:
But we can only put these HTML childrens in one place in our widget tree.
Now if we wants to implement a tab bar element with Flutter widgets, and we wants to use HTML tags to implement tab bar's header and body. We needs pass two chunk of HTML tags in to element, but we only have one place.
The WebComponent standard defined named slot can solve these problems: https://javascript.info/slots-composition#named-slots
And we can use for reference it to solve this problems.
Alternatives and Workarounds
No response
The text was updated successfully, but these errors were encountered: