Java

Kotlin

import

android.os.Build

import

android.os.Bundle

import

android.window.SplashScreenView

import

androidx.core.view.WindowCompat

import

io.flutter.embedding.android.FlutterActivity

public

class

MainActivity

extends

FlutterActivity

@Override

protected

void

onCreate

Bundle

savedInstanceState

// Aligns the Flutter view vertically with the window.

WindowCompat

setDecorFitsSystemWindows

getWindow

(),

false

);

if

Build