I am adding flutter to Android with the guide
https://github.com/flutter/flutter/wiki/Experimental:-Add-Flutter-Activity;
FlutterActivity.CachedEngineIntentBuilder builder = FlutterActivity.withCachedEngine(engName);
// builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.transparent); //1
// builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.opaque); //2
Intent intent = builder.build(activity.getApplicationContext());
activity.startActivity(intent);
but I found that when start the activity with builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.transparent); then SafeArea not work anymore;
in fact, if I comment this line, then there is always SafeAre ;
I am in
[✓] Flutter (Channel beta, v1.12.13+hotfix.1, on Mac OS X 10.15.1 19B88, locale zh-Hans-CN)
• Flutter version 1.12.13+hotfix.1 at /opt/google/flutter
• Framework revision 5b07015393 (24 hours ago), 2019-12-03 00:12:02 -0800
• Engine revision c1e322b685
• Dart version 2.7.0