setAndroidTransparentBar static method

void setAndroidTransparentBar()

设置安卓透明状态栏(仅针对安卓)

Implementation

static void setAndroidTransparentBar() {
  // 仅针对安卓
  if (DeviceUtils.isAndroid) {
    SystemUiOverlayStyle systemUiOverlayStyle = const SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }
}