flutter_native_device_orientation icon indicating copy to clipboard operation
flutter_native_device_orientation copied to clipboard

Implement platform orientation locking [enhancement]

Open sidetraxaudio opened this issue 2 years ago • 1 comments

Great package!

Any chance of implementing platform methods to lock orientation on the platform side?

Flutter SystemChrome orientation locks don't work when using a non-standard dart entry point, as we are. We are overlaying a component of our flutter app and using native to display the flutterview. Being able to lock orientation would be a god-send.

sidetraxaudio avatar Apr 29 '23 04:04 sidetraxaudio

Sorry for the delayed response. Honestly this sounds like something that should be handled directly in your own applications's code as it's pretty corner case, or at the very least could be implemented in a plugin specific to that - this plugin is really mainly focused on reporting the current orientation and I believe that it wouldn't be used by the vast majority of the plugin's users.

I'll leave it open for now though and if there are a number of requests (+1s) for it I would consider it.

rmtmckenzie avatar Jul 10 '23 07:07 rmtmckenzie