-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
- Support for creation params.
- New
dart:ui_webto get a view (aka Dom Element) by ID. - Add built-in view factory that simply does
document.createElement(creationParams.tagName). - New
HtmlElementView.fromTagNameconstructor.
The combined improvements above should make it much simpler to create platform views:
HtmlElementView.fromTagName(
tagName: 'div',
isVisible: false,
onElementCreated: (DomElement element) {
element.style
..width = '100%'
..height = '100%';
if (debug) {
element.style.backgroundColor = 'red';
}
},
)kevmoo and bdlukaa
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team