Closed AlexV525 closed 4 years ago
Or is this just designed for the app life cycle only?
By default app is in an auto mode. Only when you select one, the selected flag is enabled.
Or is this just designed for the app life cycle only?
Yes you have to do this every time app starts. It is per session.
Edit: I have updated the read me with these info
Okay that sounds reasonable, but I've checked the doc about Display.Mode
doc, seems like it can be done on the Android that select the current mode according to platform's setting when the plugin is initializing.
seems like it can be done on the Android that select the current mode according to platform's setting when the plugin is initializing.
If this can be added to the package, I'll try to create a PR for it.
Yeah that will be great. But I think it should be another function. Something like "setPlatformDefault"
Merged with #2
Scenario
Check current display mode that the phone was activated, and set the flutter app to the current mode.
What exactly happened?
Try to find the selected display mode but returned null.
How I use this package
And the log goes like this:
Once I set the mode manually, it worked until the app was killed and restart.