Skip to content
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

Open
makgabri opened this issue Nov 1, 2021 · 7 comments
Open

Sending Webview to Second Screen #15

makgabri opened this issue Nov 1, 2021 · 7 comments

Comments

@makgabri
Copy link

makgabri commented Nov 1, 2021

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:

  1. Go to copy example code.
  2. Replace the build in second screen with:
    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):

  • OS: [e.g. iOS] Android
  • Version [e.g. 22] Latest as of November 1st

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] Sunmi T2s
  • OS: [e.g. iOS8.1] Android 9.0
@winweib
Copy link

winweib commented Nov 24, 2021

I have the same problem when using camera plugin in second screen.
It seem that plugin can't use in second screen.
Can someone solve this problem?

@vukhacbiet
Copy link

Did you solved this issue?

@ot-repo
Copy link

ot-repo commented Jun 15, 2022

Hello, I am getting the same error, when I try to play a video on the second screen. Any advice on that?

@figloalds
Copy link

Hey question, did you get this to work at all?

@trapeye
Copy link

trapeye commented Nov 7, 2022

the video does not play at the start on the second screen, any advice?

@samerquta
Copy link

any update?

@alhafoudh
Copy link

@VNAPNIC Is it possible to get this working? Can you at least point us to right direction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants