fullScreen static method

Future<void> fullScreen()

Sets the app to full-screen mode (no buttons, bars, or notifications on top).

This method makes the app immersive, hiding the system UI elements. For example, the navigation bar and system status bar.

Example:

await EaseDevice.fullScreen();

Implementation

static Future<void> fullScreen() {
  return SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
}