flutter app accessible when phone is locked

JavaScript
In flutter remove the atribute 
<activity 
 android:showWhenLocked="true"
Source

Also in JavaScript: