restoreSystemUIOverlays static method

Future<void> restoreSystemUIOverlays()

Restores the system overlays to the last settings provided via setEnabledSystemUIMode. May be used when the platform force enables/disables UI elements.

For example, when the Android keyboard disables hidden status and navigation bars, this can be called to re-disable the bars when the keyboard is closed.

On Android, the system UI cannot be changed until 1 second after the previous change. This is to prevent malware from permanently hiding navigation buttons.


static Future<void> restoreSystemUIOverlays() async {
  await SystemChannels.platform.invokeMethod<void>(