buildView method
buildView Method added to support Web plugin, the main purpose is return a
to contain the conferencing screen when start
additionally extra JS can be added usin
extraJS
argument
for mobile is not need because the conferecing view get all device screenImplementation
@override
Widget buildView(List<String> extraJS) {
// ignore: undefined_prefixed_name
ui.platformViewRegistry.registerViewFactory('meet-hour-view',
(int viewId) {
final div = html.DivElement()
..id = "meet-hour-section"
..style.width = '100%'
..style.height = '100%';
return div;
});
// add extraJS only once
// this validation is needed because the view can be
// rebuileded several times
if (!extraJSAdded) {
_setupExtraScripts(extraJS);
extraJSAdded = true;
}
return HtmlElementView(viewType: 'meet-hour-view');
}