jpush / jverify-flutter-plugin

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
https://docs.jiguang.cn
MIT License
117 stars 64 forks source link

iOS 设置 navColor 及 JVCustomWIdget.backgroundColor 不支持透明度 #107

Closed AlexV525 closed 3 years ago

AlexV525 commented 3 years ago

Description

iOS 设置 navColor 及 JVCustomWIdget.backgroundColor 为透明色 (Colors.transparent) 或透明通道不为 ff 的颜色 (Color(0xcc000000) 时,颜色为黑色;设置为 0xccffffff 时为白色。

Code sample

navColor:

Jverify().setCustomAuthorizationView(false, JVUIConfig()..navColor = Colors.transparent.value);

JCustomWidget.backgroundColor:

JVerify().setCustomAuthorizationViewAllWidget(
  uiConfig,
  widgets: <JVCustomWidget>[
    JVCustomWidget(backButtonId, JVCustomWidgetType.button)
      ..backgroundColor = Colors.transparent.value
  ],
);
AlexV525 commented 3 years ago

根源是不支持 navTransparent

ref: https://docs.jiguang.cn/jverification/client/ios_api/#jvuiconfig