AliAuthModel constructor

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 = false,
  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. int? pageBackgroundRadius,
  97. String? webViewStatusBarColor,
  98. String? webNavColor,
  99. String? webNavTextColor,
  100. int? webNavTextSize,
  101. String? webNavReturnImgPath,
  102. bool? webSupportedJavascript,
  103. String? authPageActIn,
  104. String? activityOut,
  105. String? authPageActOut,
  106. String? activityIn,
  107. int? screenOrientation,
  108. bool? logBtnToastHidden,
  109. double? dialogAlpha,
  110. int? privacyOperatorIndex,
  111. List<String>? privacyConectTexts,
  112. String? protocolAction,
  113. String? packageName,
  114. String? loadingBackgroundPath,
  115. bool? isHiddenLoading,
  116. bool? isHiddenCustom,
  117. CustomThirdView? customThirdView,
  118. String? backgroundColor,
  119. String? pageBackgroundPath = "assets/background_image.jpeg",
  120. ContentMode? backgroundImageContentMode = ContentMode.scaleAspectFill,
  121. String? bottomNavBarColor,
  122. bool? alertBarIsHidden,
  123. String? alertTitleBarColor,
  124. bool? alertCloseItemIsHidden,
  125. String? alertCloseImagePath,
  126. int? alertCloseImageX,
  127. int? alertCloseImageY,
  128. int? alertCloseImageW,
  129. int? alertCloseImageH,
  130. String? alertBlurViewColor,
  131. double? alertBlurViewAlpha,
  132. PNSPresentationDirection? presentDirection,
  133. bool? privacyAlertIsNeedShow = false,
  134. bool? privacyAlertIsNeedAutoLogin = true,
  135. bool privacyAlertMaskIsNeedShow = true,
  136. double privacyAlertMaskAlpha = 0.5,
  137. String? privacyAlertMaskColor,
  138. double privacyAlertAlpha = 1,
  139. String? privacyAlertBackgroundColor,
  140. String? privacyAlertEntryAnimation,
  141. String? privacyAlertExitAnimation,
  142. List<int>? privacyAlertCornerRadiusArray,
  143. Gravity? privacyAlertAlignment,
  144. int? privacyAlertWidth,
  145. int? privacyAlertHeight,
  146. int? privacyAlertOffsetX,
  147. int? privacyAlertOffsetY,
  148. String? privacyAlertTitleContent,
  149. String? privacyAlertTitleBackgroundColor,
  150. Gravity? privacyAlertTitleAlignment,
  151. int? privacyAlertTitleOffsetX,
  152. int? privacyAlertTitleOffsetY,
  153. int? privacyAlertTitleTextSize = 18,
  154. String? privacyAlertTitleColor,
  155. String? privacyAlertContentBackgroundColor,
  156. int? privacyAlertContentTextSize = 16,
  157. Gravity? privacyAlertContentAlignment,
  158. String? privacyAlertContentColor,
  159. String? privacyAlertContentBaseColor,
  160. bool? privacyAlertProtocolNameUseUnderLine = false,
  161. int? privacyAlertContentHorizontalMargin,
  162. int? privacyAlertContentVerticalMargin,
  163. String? privacyAlertBtnBackgroundImgPath,
  164. String? privacyAlertBefore,
  165. String? privacyAlertEnd,
  166. String? privacyAlertBtnText,
  167. String? privacyAlertBtnTextColor,
  168. int? privacyAlertBtnTextSize = 18,
  169. int? privacyAlertBtnWidth,
  170. int? privacyAlertBtnHeigth,
  171. bool? privacyAlertCloseBtnShow = true,
  172. String? privacyAlertCloseImagPath,
  173. ScaleType? privacyAlertCloseScaleType,
  174. int? privacyAlertCloseImgWidth,
  175. int? privacyAlertCloseImgHeight,
  176. String? privacyAlertOwnOneColor,
  177. String? privacyAlertOwnTwoColor,
  178. String? privacyAlertOwnThreeColor,
  179. String? privacyAlertOperatorColor,
  180. bool tapPrivacyAlertMaskCloseAlert = true,
  181. bool? autoQuitPage = true,
  182. bool? isHideToast = false,
  183. String? toastText = '请先阅读用户协议',
  184. String? toastBackground = '#FF000000',
  185. String? toastColor = '#FFFFFFFF',
  186. int? toastPadding = 9,
  187. int? toastMarginTop = 0,
  188. int? toastMarginBottom = 0,
  189. String? toastPositionMode = 'bottom',
  190. int? toastDelay = 3,
})

Implementation

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 = false,
  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.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,
  this.backgroundColor,
  /**
   * "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.pageBackgroundPath = "assets/background_image.jpeg",
  this.backgroundImageContentMode = ContentMode.scaleAspectFill,
  this.bottomNavBarColor,
  this.alertBarIsHidden,
  this.alertTitleBarColor,
  this.alertCloseItemIsHidden,
  this.alertCloseImagePath,
  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.5,
  this.privacyAlertMaskColor,
  this.privacyAlertAlpha = 1,
  this.privacyAlertBackgroundColor,
  this.privacyAlertEntryAnimation,
  this.privacyAlertExitAnimation,
  this.privacyAlertCornerRadiusArray,
  this.privacyAlertAlignment,
  this.privacyAlertWidth,
  this.privacyAlertHeight,
  this.privacyAlertOffsetX,
  this.privacyAlertOffsetY,
  this.privacyAlertTitleContent,
  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.privacyAlertBefore,
  this.privacyAlertEnd,
  this.privacyAlertBtnText,
  this.privacyAlertBtnTextColor,
  this.privacyAlertBtnTextSize = 18,
  this.privacyAlertBtnWidth,
  this.privacyAlertBtnHeigth,
  this.privacyAlertCloseBtnShow = true,
  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);