AliAuthModel constructor

const AliAuthModel(
  1. String? androidSk,
  2. String? iosSk, {
  3. bool? isDebug = true,
  4. bool? isDelay = false,
  5. PageType? pageType = PageType.fullPort,
  6. int? privacyOffsetX,
  7. String? statusBarColor,
  8. String? bottomNavColor,
  9. bool? lightColor,
  10. bool? isStatusBarHidden,
  11. UIFAG? statusBarUIFlag,
  12. String? navColor,
  13. String? navText,
  14. String? navTextColor,
  15. String? navReturnImgPath,
  16. int? navReturnImgWidth,
  17. int? navReturnImgHeight,
  18. CustomView? customReturnBtn,
  19. bool? navReturnHidden,
  20. ScaleType? navReturnScaleType,
  21. bool? navHidden,
  22. String? logoImgPath,
  23. bool? logoHidden,
  24. String? numberColor,
  25. int? numberSize,
  26. bool? switchAccHidden,
  27. bool? switchCheck,
  28. String? switchAccTextColor,
  29. String? logBtnText,
  30. int? logBtnTextSize,
  31. String? logBtnTextColor,
  32. String? protocolOneName,
  33. String? protocolOneURL,
  34. String? protocolTwoName,
  35. String? protocolTwoURL,
  36. String? protocolThreeName,
  37. String? protocolThreeURL,
  38. String? protocolCustomColor,
  39. String? protocolColor,
  40. Gravity? protocolLayoutGravity,
  41. String? sloganTextColor,
  42. String? protocolOwnColor,
  43. String? protocolOwnOneColor,
  44. String? protocolOwnTwoColor,
  45. String? protocolOwnThreeColor,
  46. String? sloganText,
  47. String? logBtnBackgroundPath,
  48. String? loadingImgPath,
  49. int? sloganOffsetY,
  50. int? logoOffsetY,
  51. int? logoOffsetY_B,
  52. ScaleType? logoScaleType,
  53. int? numFieldOffsetY,
  54. int? numFieldOffsetY_B,
  55. int? numberFieldOffsetX,
  56. Gravity? numberLayoutGravity,
  57. int? switchOffsetY,
  58. int? switchOffsetY_B,
  59. int? logBtnOffsetY,
  60. int? logBtnOffsetY_B,
  61. int? logBtnWidth,
  62. int? logBtnHeight,
  63. int? logBtnOffsetX,
  64. int? logBtnMarginLeftAndRight,
  65. Gravity? logBtnLayoutGravity,
  66. int? privacyOffsetY,
  67. int? privacyOffsetY_B,
  68. int? sloganOffsetY_B,
  69. int? checkBoxWidth,
  70. int? checkBoxHeight,
  71. bool? checkboxHidden,
  72. int? navTextSize,
  73. int? logoWidth,
  74. int? logoHeight,
  75. int? switchAccTextSize,
  76. String? switchAccText,
  77. int? sloganTextSize,
  78. bool? sloganHidden,
  79. String? uncheckedImgPath,
  80. String? checkedImgPath,
  81. bool? privacyState,
  82. Gravity? protocolGravity,
  83. int? privacyTextSize,
  84. int? privacyMargin,
  85. String? privacyBefore,
  86. String? privacyEnd,
  87. String? vendorPrivacyPrefix,
  88. String? vendorPrivacySuffix,
  89. bool? tapAuthPageMaskClosePage = false,
  90. int? dialogWidth,
  91. int? dialogHeight,
  92. bool? dialogBottom,
  93. int? dialogOffsetX,
  94. int? dialogOffsetY,
  95. List<int>? dialogCornerRadiusArray,
  96. String? pageBackgroundPath,
  97. int? pageBackgroundRadius,
  98. String? webViewStatusBarColor,
  99. String? webNavColor,
  100. String? webNavTextColor,
  101. int? webNavTextSize,
  102. String? webNavReturnImgPath,
  103. bool? webSupportedJavascript,
  104. String? authPageActIn,
  105. String? activityOut,
  106. String? authPageActOut,
  107. String? activityIn,
  108. int? screenOrientation,
  109. bool? logBtnToastHidden,
  110. double? dialogAlpha,
  111. int? privacyOperatorIndex,
  112. List<String>? privacyConectTexts,
  113. String? protocolAction,
  114. String? packageName,
  115. String? loadingBackgroundPath,
  116. bool? isHiddenLoading,
  117. bool? isHiddenCustom,
  118. CustomThirdView? customThirdView,
  119. String? backgroundPath = "assets/background_image.jpeg",
  120. String? bottomNavBarColor,
  121. bool? alertBarIsHidden,
  122. String? alertTitleBarColor,
  123. bool? alertCloseItemIsHidden,
  124. String? alertCloseImage,
  125. int? alertCloseImageX,
  126. int? alertCloseImageY,
  127. int? alertCloseImageW,
  128. int? alertCloseImageH,
  129. String? alertBlurViewColor,
  130. double? alertBlurViewAlpha,
  131. PNSPresentationDirection? presentDirection,
  132. bool privacyAlertIsNeedShow = false,
  133. bool privacyAlertIsNeedAutoLogin = true,
  134. bool privacyAlertMaskIsNeedShow = true,
  135. double privacyAlertMaskAlpha = 0.3,
  136. double privacyAlertAlpha = 0.2,
  137. String? privacyAlertBackgroundColor,
  138. String? privacyAlertEntryAnimation,
  139. String? privacyAlertExitAnimation,
  140. List<int>? privacyAlertCornerRadiusArray,
  141. Gravity? privacyAlertAlignment,
  142. int? privacyAlertWidth,
  143. int? privacyAlertHeight,
  144. int? privacyAlertOffsetX,
  145. int? privacyAlertOffsetY,
  146. String? privacyAlertTitleBackgroundColor,
  147. Gravity? privacyAlertTitleAlignment,
  148. int? privacyAlertTitleOffsetX,
  149. int? privacyAlertTitleOffsetY,
  150. int privacyAlertTitleTextSize = 18,
  151. String? privacyAlertTitleColor,
  152. String? privacyAlertContentBackgroundColor,
  153. int? privacyAlertContentTextSize = 16,
  154. Gravity? privacyAlertContentAlignment,
  155. String? privacyAlertContentColor,
  156. String? privacyAlertContentBaseColor,
  157. bool? privacyAlertProtocolNameUseUnderLine = false,
  158. int? privacyAlertContentHorizontalMargin,
  159. int? privacyAlertContentVerticalMargin,
  160. String? privacyAlertBtnBackgroundImgPath,
  161. String? privacyAlertBtnTextColor,
  162. int? privacyAlertBtnTextSize = 18,
  163. int? privacyAlertBtnWidth,
  164. int? privacyAlertBtnHeigth,
  165. bool? privacyAlertCloseBtnShow,
  166. String? privacyAlertCloseImagPath,
  167. ScaleType? privacyAlertCloseScaleType,
  168. int? privacyAlertCloseImgWidth,
  169. int? privacyAlertCloseImgHeight,
  170. String? privacyAlertOwnOneColor,
  171. String? privacyAlertOwnTwoColor,
  172. String? privacyAlertOwnThreeColor,
  173. String? privacyAlertOperatorColor,
  174. bool tapPrivacyAlertMaskCloseAlert = true,
  175. bool? autoQuitPage = true,
  176. bool? isHideToast = false,
  177. String? toastText = '请先阅读用户协议',
  178. String? toastBackground = '#FF000000',
  179. String? toastColor = '#FFFFFFFF',
  180. int? toastPadding = 9,
  181. int? toastMarginTop = 0,
  182. int? toastMarginBottom = 0,
  183. String? toastPositionMode = 'bottom',
  184. int? toastDelay = 3,
})

Implementation

const AliAuthModel(
  this.androidSk,
  this.iosSk, {
  this.isDebug = true,
  this.isDelay = false,
  this.pageType = PageType.fullPort,
  this.privacyOffsetX,
  this.statusBarColor,
  this.bottomNavColor,
  this.lightColor,
  this.isStatusBarHidden,
  this.statusBarUIFlag,
  this.navColor,
  this.navText,
  this.navTextColor,
  this.navReturnImgPath,
  this.navReturnImgWidth,
  this.navReturnImgHeight,
  this.customReturnBtn,
  this.navReturnHidden,
  this.navReturnScaleType,
  this.navHidden,
  this.logoImgPath,
  this.logoHidden,
  this.numberColor,
  this.numberSize,
  this.switchAccHidden,
  this.switchCheck,
  this.switchAccTextColor,
  this.logBtnText,
  this.logBtnTextSize,
  this.logBtnTextColor,
  this.protocolOneName,
  this.protocolOneURL,
  this.protocolTwoName,
  this.protocolTwoURL,
  this.protocolThreeName,
  this.protocolThreeURL,
  this.protocolCustomColor,
  this.protocolColor,
  this.protocolLayoutGravity,
  this.sloganTextColor,

  /// 授权页运营商协议文本颜色。
  this.protocolOwnColor,

  /// 授权页协议1文本颜色。
  this.protocolOwnOneColor,

  /// 授权页协议2文本颜色。
  this.protocolOwnTwoColor,

  /// 授权页协议3文本颜色。
  this.protocolOwnThreeColor,
  this.sloganText,
  this.logBtnBackgroundPath,
  this.loadingImgPath,
  this.sloganOffsetY,
  this.logoOffsetY,
  // ignore: non_constant_identifier_names
  this.logoOffsetY_B,
  this.logoScaleType,
  this.numFieldOffsetY,
  // ignore: non_constant_identifier_names
  this.numFieldOffsetY_B,
  this.numberFieldOffsetX,
  this.numberLayoutGravity,
  this.switchOffsetY,
  // ignore: non_constant_identifier_names
  this.switchOffsetY_B,
  this.logBtnOffsetY,
  // ignore: non_constant_identifier_names
  this.logBtnOffsetY_B,
  this.logBtnWidth,
  this.logBtnHeight,
  this.logBtnOffsetX,
  this.logBtnMarginLeftAndRight,
  this.logBtnLayoutGravity,
  this.privacyOffsetY,
  // ignore: non_constant_identifier_names
  this.privacyOffsetY_B,
  // ignore: non_constant_identifier_names
  this.sloganOffsetY_B,
  this.checkBoxWidth,
  this.checkBoxHeight,
  this.checkboxHidden,
  this.navTextSize,
  this.logoWidth,
  this.logoHeight,
  this.switchAccTextSize,
  this.switchAccText,
  this.sloganTextSize,
  this.sloganHidden,
  this.uncheckedImgPath,
  this.checkedImgPath,
  this.privacyState,
  this.protocolGravity,
  this.privacyTextSize,
  this.privacyMargin,
  this.privacyBefore,
  this.privacyEnd,
  this.vendorPrivacyPrefix,
  this.vendorPrivacySuffix,
  this.tapAuthPageMaskClosePage = false,
  this.dialogWidth,
  this.dialogHeight,
  this.dialogBottom,
  this.dialogOffsetX,
  this.dialogOffsetY,
  this.dialogCornerRadiusArray,
  this.pageBackgroundPath,
  this.pageBackgroundRadius,
  this.webViewStatusBarColor,
  this.webNavColor,
  this.webNavTextColor,
  this.webNavTextSize,
  this.webNavReturnImgPath,
  this.webSupportedJavascript,
  this.authPageActIn,
  this.activityOut,
  this.authPageActOut,
  this.activityIn,
  this.screenOrientation,
  this.logBtnToastHidden,
  this.dialogAlpha,
  this.privacyOperatorIndex,
  this.privacyConectTexts,
  this.protocolAction,
  this.packageName,
  this.loadingBackgroundPath,
  this.isHiddenLoading,
  this.isHiddenCustom,
  this.customThirdView,
  /**
       * "assets/background_gif.gif"
       * "assets/background_gif1.gif"
       * "assets/background_gif2.gif"
       * "assets/background_image.jpeg"
       * "assets/background_video.mp4"
       *
       * "https://upfile.asqql.com/2009pasdfasdfic2009s305985-ts/2018-7/20187232061776607.gif"
       * "https://img.zcool.cn/community/01dda35912d7a3a801216a3e3675b3.gif",
       */
  this.backgroundPath = "assets/background_image.jpeg",
  this.bottomNavBarColor,
  this.alertBarIsHidden,
  this.alertTitleBarColor,
  this.alertCloseItemIsHidden,
  this.alertCloseImage,
  this.alertCloseImageX,
  this.alertCloseImageY,
  this.alertCloseImageW,
  this.alertCloseImageH,
  this.alertBlurViewColor,
  this.alertBlurViewAlpha,
  this.presentDirection,
  this.privacyAlertIsNeedShow = false,
  this.privacyAlertIsNeedAutoLogin = true,
  this.privacyAlertMaskIsNeedShow = true,
  this.privacyAlertMaskAlpha = 0.3,
  this.privacyAlertAlpha = 0.2,
  this.privacyAlertBackgroundColor,
  this.privacyAlertEntryAnimation,
  this.privacyAlertExitAnimation,
  this.privacyAlertCornerRadiusArray,
  this.privacyAlertAlignment,
  this.privacyAlertWidth,
  this.privacyAlertHeight,
  this.privacyAlertOffsetX,
  this.privacyAlertOffsetY,
  this.privacyAlertTitleBackgroundColor,
  this.privacyAlertTitleAlignment,
  this.privacyAlertTitleOffsetX,
  this.privacyAlertTitleOffsetY,
  this.privacyAlertTitleTextSize = 18,
  this.privacyAlertTitleColor,
  this.privacyAlertContentBackgroundColor,
  this.privacyAlertContentTextSize = 16,
  this.privacyAlertContentAlignment,
  this.privacyAlertContentColor,
  this.privacyAlertContentBaseColor,
  this.privacyAlertProtocolNameUseUnderLine = false,
  this.privacyAlertContentHorizontalMargin,
  this.privacyAlertContentVerticalMargin,
  this.privacyAlertBtnBackgroundImgPath,
  this.privacyAlertBtnTextColor,
  this.privacyAlertBtnTextSize = 18,
  this.privacyAlertBtnWidth,
  this.privacyAlertBtnHeigth,
  this.privacyAlertCloseBtnShow,
  this.privacyAlertCloseImagPath,
  this.privacyAlertCloseScaleType,
  this.privacyAlertCloseImgWidth,
  this.privacyAlertCloseImgHeight,

  /// 授权页协议1文本颜色。
  this.privacyAlertOwnOneColor,

  /// 授权页协议2文本颜色。
  this.privacyAlertOwnTwoColor,

  /// 授权页协议3文本颜色。
  this.privacyAlertOwnThreeColor,

  /// 授权页运营商协议文本颜色。
  this.privacyAlertOperatorColor,
  this.tapPrivacyAlertMaskCloseAlert = true,
  this.autoQuitPage = true,
  this.isHideToast = false,
  this.toastText = '请先阅读用户协议',
  this.toastBackground = '#FF000000',
  this.toastColor = '#FFFFFFFF',
  this.toastPadding = 9,
  this.toastMarginTop = 0,
  this.toastMarginBottom = 0,
  this.toastPositionMode = 'bottom',
  this.toastDelay = 3,
})  : assert(androidSk != null || iosSk != null),
      assert(pageType != null),
      assert(isDelay != null);