buildView method

  1. @override
Widget buildView(
  1. List<String> extraJS
)
override

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 screen

Implementation

@override
Widget buildView(List<String> extraJS) {
  // ignore: undefined_prefixed_name
  ui.platformViewRegistry.registerViewFactory('jitsi-meet-view',
      (int viewId) {
    final div = html.DivElement()
      ..id = "jitsi-meet-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: 'jitsi-meet-view');
}