Commit db9b1ea2 authored by nightfallsad's avatar nightfallsad

FIX android status bar font color

parent ebdb54f7
...@@ -170,6 +170,10 @@ class BoostContainerState extends NavigatorState { ...@@ -170,6 +170,10 @@ class BoostContainerState extends NavigatorState {
routerHistory.clear(); routerHistory.clear();
// 复用XPlatformPlugin后,每次dispose时都需要在这里反复通知Native更新Theme
// SystemChrome.restoreSystemUIOverlays();
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle());
super.dispose(); super.dispose();
} }
...@@ -253,8 +257,6 @@ class BoostContainerState extends NavigatorState { ...@@ -253,8 +257,6 @@ class BoostContainerState extends NavigatorState {
routerHistory.add(route); routerHistory.add(route);
// 复用XPlatformPlugin后,每次进入页面时都需要在这里反复通知Native更新Theme
SystemChrome.restoreSystemUIOverlays();
if (FlutterBoost.containerManager.postPushRoute != null) { if (FlutterBoost.containerManager.postPushRoute != null) {
FlutterBoost.containerManager FlutterBoost.containerManager
.postPushRoute(name, uniqueId, params, newRoute ?? route, future); .postPushRoute(name, uniqueId, params, newRoute ?? route, future);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment