builttoroam / multiple_screens Goto Github PK
View Code? Open in Web Editor NEWMultiple Screens Plugin for Flutter
Home Page: https://pub.dev/packages/multiple_screens
License: MIT License
Multiple Screens Plugin for Flutter
Home Page: https://pub.dev/packages/multiple_screens
License: MIT License
Thank you for writing this plug-in. I want to ask, does this plug-in only support one screen to write two windows, or can it be used on the main and secondary screens (dual screens). My device is a dual screen device, but the value obtained is false
Hello, I just wanted to start by thanking you for developing this plugin. Unfortunately it currently only appears to support landscape orientation and not portrait orientation. I was wondering if perhaps it might be possible to add support for portrait orientation in addition to landscape orientation. See the below screenshots for a visual representation of the issue.
When App is closed it immediately crashes with RuntimeException "Unable to destroy activity" because of uninitialized methodChannel and eventChannel in MultipleScreensPlugin.kt.
D/AndroidRuntime(24552): Shutting down VM
E/AndroidRuntime(24552): FATAL EXCEPTION: main
E/AndroidRuntime(24552): Process: com.builttoroam.multiple_screens_example, PID: 24552
E/AndroidRuntime(24552): java.lang.RuntimeException: Unable to destroy activity {com.builttoroam.multiple_screens_example/com.builttoroam.multiple_screens_example.MainActivity}: kotlin.UninitializedPropertyAccessException: lateinit property methodChannel has not been initialized
E/AndroidRuntime(24552): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4946)
E/AndroidRuntime(24552): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4975)
E/AndroidRuntime(24552): at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44)
E/AndroidRuntime(24552): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
E/AndroidRuntime(24552): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
E/AndroidRuntime(24552): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2021)
E/AndroidRuntime(24552): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(24552): at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime(24552): at android.app.ActivityThread.main(ActivityThread.java:7361)
E/AndroidRuntime(24552): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(24552): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime(24552): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
E/AndroidRuntime(24552): Caused by: kotlin.UninitializedPropertyAccessException: lateinit property methodChannel has not been initialized
E/AndroidRuntime(24552): at com.builttoroam.multiple_screens.MultipleScreensPlugin.onDetachedFromEngine(MultipleScreensPlugin.kt:153)
E/AndroidRuntime(24552): at io.flutter.embedding.engine.FlutterEnginePluginRegistry.remove(FlutterEnginePluginRegistry.java:252)
E/AndroidRuntime(24552): at io.flutter.embedding.engine.FlutterEnginePluginRegistry.remove(FlutterEnginePluginRegistry.java:260)
E/AndroidRuntime(24552): at io.flutter.embedding.engine.FlutterEnginePluginRegistry.removeAll(FlutterEnginePluginRegistry.java:268)
E/AndroidRuntime(24552): at io.flutter.embedding.engine.FlutterEnginePluginRegistry.destroy(FlutterEnginePluginRegistry.java:112)
E/AndroidRuntime(24552): at io.flutter.embedding.engine.FlutterEngine.destroy(FlutterEngine.java:365)
E/AndroidRuntime(24552): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach(FlutterActivityAndFragmentDelegate.java:528)
E/AndroidRuntime(24552): at io.flutter.embedding.android.FlutterActivity.onDestroy(FlutterActivity.java:577)
E/AndroidRuntime(24552): at android.app.Activity.performDestroy(Activity.java:8071)
E/AndroidRuntime(24552): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1341)
E/AndroidRuntime(24552): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4931)
E/AndroidRuntime(24552): ... 11 more
I was wondering if anyone else is thinking about flutter in terms of the UX when you have multiple screens.
On desktop it’s often that the user has dual screens provided by the OS and it would be useful to detect this at the Os level.
Once detected you may want to then support advanced UX things like dragging and dropping between screens , custom docking scenarios etc
Flutter is going to likely have a place on all devices from mobiles to embedded and new and unusual interaction experiences will emerge I feel and I would really like to hear everyone’s thoughts as I am wanting to extend this package to support these ideas and experiments
We have a Maven repo for the SDK, perhps you want to convert to using that and then you won't have to update the JAR in the package all the time?
https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.