FlutterActivityLaunchConfigs.BackgroundMode.transparent makes safeArea not work

172 views
Skip to first unread message

Jianming Wan

unread,
Dec 4, 2019, 3:28:02 AM12/4/19
to Flutter Development (flutter-dev)
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

Matt Carroll

unread,
Dec 4, 2019, 6:36:38 PM12/4/19
to Jianming Wan, Flutter Development (flutter-dev)
Hi, would you mind filing a bug for this on GitHub?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/cfc7eef5-57e3-4432-912c-39d5f051c685%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages