vendredi 20 septembre 2019

How to add custom html platform views in new flutter web

I want to add custom video with html platform view to my flutter web project (1.9 tech preview) and i can't seem to find anything close to the old functions that allowed me to do this on the old flutter_web

I want something equivalent to this any help is welcome.

ui.platformViewRegistry.registerViewFactory(
      'hello-world-html',
      (int viewId) => IFrameElement()
        ..width = '640'
        ..height = '360'
        ..src = 'https://www.youtube.com/embed/IyFZznAk69U'
        ..style.border = 'none');




Aucun commentaire:

Enregistrer un commentaire