- Locate your MainActivity class inside the embedded android project dir in your Flutter Project
- Add the following import to your main activity class:
import android.view.WindowManager.LayoutParams;
- Add the following line to your MainActivity’s onCreate method:
getWindow().addFlags(LayoutParams.FLAG_SECURE);