-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending Webview to Second Screen #15
Comments
I have the same problem when using camera plugin in second screen. |
Did you solved this issue? |
Hello, I am getting the same error, when I try to play a video on the second screen. Any advice on that? |
Hey question, did you get this to work at all? |
the video does not play at the start on the second screen, any advice? |
any update? |
@VNAPNIC Is it possible to get this working? Can you at least point us to right direction? |
Describe the bug
I have copied the example code and attempted to replace the second screen with a webview. I can transmit data and text can be shown properly as I used a scaffold and set the title to whatever data I sent from the primary screen to the second screen. However, I am getting an error when trying to display a webview. Not sure if this is an installation issue but I am able to load the webview on the primary page.
To Reproduce
Steps to reproduce the behavior:
Widget build(BuildContext context) { return SecondaryDisplay( callback: (argument) { setState(() { value = argument; }); }, child: Scaffold( appBar: AppBar( title: Text("Second Screen: "+value), ), body: Center( child: WebView(initialUrl: 'https://www.google.ca',), ) // body: Center( // child: Text(value) // ) ) ); }
Expected behavior
The second screen is able to display a webview.
Screenshots
Getting the following errors:
E/flutter (23367): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: MissingPluginException(No implementation found for method create on channel flutter/platform_views) E/flutter (23367): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7) E/flutter (23367): <asynchronous suspension> E/flutter (23367): #1 AndroidViewController.create (package:flutter/src/services/platform_views.dart:748:5) E/flutter (23367): <asynchronous suspension>
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: