@@ -592,29 +592,33 @@ class JVUIConfig {
592
592
JVIOSUIModalTransitionStyle modelTransitionStyle = //弹出方式 only ios
593
593
JVIOSUIModalTransitionStyle .CoverVertical ;
594
594
595
- /*** 协议二次弹窗-iOS */
595
+ /*** 协议二次弹窗-iOS */
596
596
597
597
/**协议二次弹窗标题文本样式*/
598
598
int agreementAlertViewTitleTexSize = 14 ;
599
599
600
- /**协议二次弹窗标题文本颜色*/
601
- int ? agreementAlertViewTitleTextColor;
600
+ /**协议二次弹窗标题文本颜色*/
601
+ int ? agreementAlertViewTitleTextColor;
602
602
603
- /**协议二次弹窗内容文本对齐方式*/
604
- JVTextAlignmentType agreementAlertViewContentTextAlignment = JVTextAlignmentType .center;
603
+ /**协议二次弹窗内容文本对齐方式*/
604
+ JVTextAlignmentType agreementAlertViewContentTextAlignment =
605
+ JVTextAlignmentType .center;
605
606
606
- /**协议二次弹窗内容文本字体大小*/
607
- int agreementAlertViewContentTextFontSize = 12 ;
607
+ /**协议二次弹窗内容文本字体大小*/
608
+ int agreementAlertViewContentTextFontSize = 12 ;
608
609
609
610
/**协议二次弹窗登录按钮背景图片
610
611
激活状态的图片,失效状态的图片,高亮状态的图片
611
612
*/
612
613
String ? agreementAlertViewLoginBtnNormalImagePath;
613
- String ? agreementAlertViewLoginBtnPressedImagePath;
614
- String ? agreementAlertViewLoginBtnUnableImagePath;
614
+ String ? agreementAlertViewLoginBtnPressedImagePath;
615
+ String ? agreementAlertViewLoginBtnUnableImagePath;
615
616
616
617
/**协议二次弹窗登录按钮文本颜色*/
617
- int ? agreementAlertViewLogBtnTextColor;
618
+ int ? agreementAlertViewLogBtnTextColor;
619
+
620
+ /**协议页面是否支持暗黑模式*/
621
+ bool setIsPrivacyViewDarkMode = true ;
618
622
619
623
Map toJsonMap () {
620
624
return {
@@ -725,16 +729,25 @@ class JVUIConfig {
725
729
"privacyNavTitleTitle" : privacyNavTitleTitle ?? = null ,
726
730
"textVerAlignment" : textVerAlignment,
727
731
//ios-协议的二次弹窗
728
- "agreementAlertViewTitleTexSize" : agreementAlertViewTitleTexSize ,
729
- "agreementAlertViewTitleTextColor" : agreementAlertViewTitleTextColor ?? = Colors .black.value,
730
- "agreementAlertViewContentTextAlignment" : getStringFromEnum (agreementAlertViewContentTextAlignment),
731
- "agreementAlertViewContentTextFontSize" : agreementAlertViewContentTextFontSize,
732
- "agreementAlertViewLoginBtnNormalImagePath" : agreementAlertViewLoginBtnNormalImagePath ?? = null ,
733
- "agreementAlertViewLoginBtnPressedImagePath" : agreementAlertViewLoginBtnPressedImagePath ?? = null ,
734
- "agreementAlertViewLoginBtnUnableImagePath" : agreementAlertViewLoginBtnUnableImagePath ?? = null ,
735
- "agreementAlertViewLogBtnTextColor" : agreementAlertViewLogBtnTextColor ?? = Colors .black.value,
736
- "privacyCheckDialogConfig" :
737
- privacyCheckDialogConfig != null ? privacyCheckDialogConfig? .toJsonMap () : null ,
732
+ "agreementAlertViewTitleTexSize" : agreementAlertViewTitleTexSize,
733
+ "agreementAlertViewTitleTextColor" : agreementAlertViewTitleTextColor ?? =
734
+ Colors .black.value,
735
+ "agreementAlertViewContentTextAlignment" :
736
+ getStringFromEnum (agreementAlertViewContentTextAlignment),
737
+ "agreementAlertViewContentTextFontSize" :
738
+ agreementAlertViewContentTextFontSize,
739
+ "agreementAlertViewLoginBtnNormalImagePath" :
740
+ agreementAlertViewLoginBtnNormalImagePath ?? = null ,
741
+ "agreementAlertViewLoginBtnPressedImagePath" :
742
+ agreementAlertViewLoginBtnPressedImagePath ?? = null ,
743
+ "agreementAlertViewLoginBtnUnableImagePath" :
744
+ agreementAlertViewLoginBtnUnableImagePath ?? = null ,
745
+ "agreementAlertViewLogBtnTextColor" : agreementAlertViewLogBtnTextColor ?? =
746
+ Colors .black.value,
747
+ "privacyCheckDialogConfig" : privacyCheckDialogConfig != null
748
+ ? privacyCheckDialogConfig? .toJsonMap ()
749
+ : null ,
750
+ "setIsPrivacyViewDarkMode" : setIsPrivacyViewDarkMode,
738
751
}..removeWhere ((key, value) => value == null );
739
752
}
740
753
}
@@ -781,15 +794,15 @@ class JVPopViewConfig {
781
794
class JVPrivacyCheckDialogConfig {
782
795
int ? width; //协议⼆次弹窗本身的宽
783
796
int ? height; //协议⼆次弹窗本身的⾼
784
- int ? offsetX ; // 窗口相对屏幕中心的x轴偏移量
785
- int ? offsetY ; // 窗口相对屏幕中心的y轴偏移量
786
- int ? titleTextSize ; // 弹窗标题字体大小
787
- int ? titleTextColor ; // 弹窗标题字体颜色
788
- String ? contentTextGravity ; //协议⼆次弹窗协议内容对⻬⽅式
789
- int ? contentTextSize ; //协议⼆次弹窗协议内容字体⼤⼩
790
- String ? logBtnImgPath ; //协议⼆次弹窗登录按钮的背景图⽚
791
- int ? logBtnTextColor ; //协议⼆次弹窗登录按钮的字体颜⾊
792
- String ? gravity ; //
797
+ int ? offsetX; // 窗口相对屏幕中心的x轴偏移量
798
+ int ? offsetY; // 窗口相对屏幕中心的y轴偏移量
799
+ int ? titleTextSize; // 弹窗标题字体大小
800
+ int ? titleTextColor; // 弹窗标题字体颜色
801
+ String ? contentTextGravity; //协议⼆次弹窗协议内容对⻬⽅式
802
+ int ? contentTextSize; //协议⼆次弹窗协议内容字体⼤⼩
803
+ String ? logBtnImgPath; //协议⼆次弹窗登录按钮的背景图⽚
804
+ int ? logBtnTextColor; //协议⼆次弹窗登录按钮的字体颜⾊
805
+ String ? gravity; //
793
806
bool ? enablePrivacyCheckDialog;
794
807
JVPrivacyCheckDialogConfig () {
795
808
this .enablePrivacyCheckDialog = true ;
@@ -808,10 +821,9 @@ class JVPrivacyCheckDialogConfig {
808
821
"contentTextSize" : contentTextSize,
809
822
"logBtnImgPath" : logBtnImgPath,
810
823
"logBtnTextColor" : logBtnTextColor,
811
- "enablePrivacyCheckDialog" : enablePrivacyCheckDialog,
824
+ "enablePrivacyCheckDialog" : enablePrivacyCheckDialog,
812
825
}..removeWhere ((key, value) => value == null );
813
826
}
814
-
815
827
}
816
828
817
829
/// 自定义控件
@@ -959,6 +971,7 @@ enum JVIOSUIModalTransitionStyle {
959
971
CrossDissolve ,
960
972
PartialCurl
961
973
}
974
+
962
975
/*
963
976
*
964
977
* iOS状态栏设置,需要设置info.plist文件中
0 commit comments