正如标题所示,这是关于Flutter的.
有没有办法将Android状态栏切换到灯光模式,以便状态栏中的图标显示为黑暗?见图片.
我尝试了可能的解决方案,但没有一个工作 –
// main.dart appBar: new AppBar( brightness: Brightness.light,backgroundColor: Colors.white,),// MainActivity.kt // Following 2 lines do change the color of status and nav bars window.statusBarColor = 0x00000000 window.navigationBarColor = 0x00000000 // This seems to have no effect. Icons are still white. window.decorView.systemUIVisibility = View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
UPDATE
对此的支持正在进行中 – https://github.com/flutter/flutter/issues/17231