rmtmckenzie / flutter_native_device_orientation

Native device orientation plugin for flutter.
MIT License
76 stars 63 forks source link

Implement platform orientation locking [enhancement] #54

Open sidetraxaudio opened 1 year ago

sidetraxaudio commented 1 year ago

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.

rmtmckenzie commented 1 year ago

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.