webf
webf copied to clipboard
error: WebFRootRenderObjectWidget has multiple children
Affected version
0.12.0 +
No same issues found.
- [X] Yes, I search all issues but not found.
Steps to Reproduce
demo
Code example
<html>
<head>
<script>
function goBack() {
window.history.back()
}
</script>
</head>
<body>
<input type="button" value="Back" onclick="goBack()"></input>
</body>
</html>
Expected results
Consistent with h5
Actual results
throw exception
frameworkException ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞════════════════════════
The following assertion was thrown building WebFContext:
Duplicate keys found.
If multiple keyed nodes exist as children of another node, they
must have unique keys.
WebFRootRenderObjectWidget has multiple children with key
[GlobalObjectKey RenderWidget#c4000].
The relevant error-causing widget was:
WebFContext
WebFContext:xxx/webf/webf/lib/src/widget/webf.dart:226:14