Created
October 21, 2019 08:45
-
-
Save k4zek4ge/145f9321aad2e39d3745fb773f7d06c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
ui.platformViewRegistry.registerViewFactory( | |
'hello-world-html', | |
(int viewId) => IFrameElement() | |
..width = '640' | |
..height = '360' | |
..src = 'https://www.youtube.com/embed/IyFZznAk69U' | |
..style.border = 'none'); | |
runApp(Directionality( | |
textDirection: TextDirection.ltr, | |
child: SizedBox( | |
width: 640, | |
height: 360, | |
child: HtmlView(viewType: 'hello-world-html'), | |
), | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment