Code Monkey home page Code Monkey logo

multiple_screens's People

Contributors

bhl09 avatar nickbalnaves avatar nickrandolph avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

multiple_screens's Issues

Add support for portrait orientation

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.

Screenshot_1592979685
Screenshot_1592979735

Android crash on App close

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

Support other than Android . Open to anyone’s thoughts on this !!

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.