-
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 new widget to the second screen #9
Comments
when u use the SecondaryDisplay then the class SecondaryScreen is a new application, so Provider not working,
"value" -> can u change value to json. corresponding to data transfer and
to listening for data |
@VNAPNIC @EbramTawfik @harrynguyen-vmo I tried Three Packages presentation_displays: ^0.1.9, presentation_displays: ^0.2.0 and presentation_displays: ^0.2.1 in rk3288 POS with these two packages I have same two issues :
I am getting these print messages, but nothing in the secondary screen Get Displays works well TransferData NOT WORKING Please see the code below import 'package:flutter/material.dart'; class PresenterService { Route generateRoute(RouteSettings settings) { class ProviderInjector { void main() { class MyApp extends StatelessWidget { class Button extends StatelessWidget { final String title; @OverRide /// Main Screen class _DisplayManagerScreenState extends State {
} /// UI of Presentation display class _SecondaryScreenState extends State { |
The issue was with Android image, I had to flush the android image and re flash with other build. Now its working |
if some one have issue to get it work, please use this way displayManager.transferDataToPresentation(json.encode(json)); |
hello , i am new to this, can help provide more information about this ? how can i solve this issue, i cant get it what its mean by flush the android image? anyone can help on this? |
Its better if you contact your device vendor, they will do it for you. |
this is related to hardware device? i will contact my device vendor, thanks |
I modified the example and added a button new screen to update the value of current widget. I created a provider service which I wanted to use to pass the widget between the two screen but for some reason whenever I get the value of current widget from the service in the second screen it's always null. I think the second screen is a different process
here is the code:
The text was updated successfully, but these errors were encountered: