Displaying an iframe in Dart
Is it possible to display an iframe in Dart? Below is the code that I am using void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { final wordPair = WordPair.random(); return MaterialApp( title: 'Welcome to Flutter', home: Scaffold( appBar: AppBar( title: Text('Welcome to Flutter'), ), body: Center( child: Text(wordPair.asPascalCase), // With this highlighted text. ), ), ); } } I am not sure how to add an iframe into this. Below is the snippet that is given in the documentation factory IFrameElement() => JS( 'returns:IFrameElement
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.