AliAuthModel constructor
AliAuthModel(
- String? androidSk,
- String? iosSk, {
- bool? isDebug = true,
- bool? isDelay = false,
- PageType? pageType = PageType.fullPort,
- int? privacyOffsetX,
- String? statusBarColor,
- bool? lightColor,
- bool? isStatusBarHidden,
- UIFAG? statusBarUIFlag,
- CustomView? customReturnBtn,
- String? logoImgPath,
- bool? logoHidden,
- String? numberColor,
- int? numberSize,
- bool? switchAccHidden,
- bool? switchCheck,
- String? switchAccTextColor,
- String? logBtnText,
- int? logBtnTextSize,
- String? logBtnTextColor,
- String? protocolOneName,
- String? protocolOneURL,
- String? protocolTwoName,
- String? protocolTwoURL,
- String? protocolThreeName,
- String? protocolThreeURL,
- String? protocolCustomColor,
- String? protocolColor,
- Gravity? protocolLayoutGravity,
- String? sloganTextColor,
- String? protocolOwnColor,
- String? protocolOwnOneColor,
- String? protocolOwnTwoColor,
- String? protocolOwnThreeColor,
- String? sloganText,
- String? logBtnBackgroundPath,
- String? loadingImgPath,
- int? sloganOffsetY,
- int? logoOffsetY,
- int? logoOffsetY_B,
- ScaleType? logoScaleType,
- int? numFieldOffsetY,
- int? numFieldOffsetY_B,
- int? numberFieldOffsetX,
- Gravity? numberLayoutGravity,
- int? switchOffsetY,
- int? switchOffsetY_B,
- int? logBtnOffsetY,
- int? logBtnOffsetY_B,
- int? logBtnWidth,
- int? logBtnHeight,
- int? logBtnOffsetX,
- int? logBtnMarginLeftAndRight,
- Gravity? logBtnLayoutGravity,
- int? privacyOffsetY,
- int? privacyOffsetY_B,
- int? sloganOffsetY_B,
- int? checkBoxWidth,
- int? checkBoxHeight,
- bool? checkboxHidden,
- int? logoWidth,
- int? logoHeight,
- int? switchAccTextSize,
- String? switchAccText,
- int? sloganTextSize,
- bool? sloganHidden,
- String? uncheckedImgPath,
- String? checkedImgPath,
- bool? privacyState = false,
- Gravity? protocolGravity,
- int? privacyTextSize,
- int? privacyMargin,
- String? privacyBefore,
- String? privacyEnd,
- String? vendorPrivacyPrefix,
- String? vendorPrivacySuffix,
- bool? tapAuthPageMaskClosePage = false,
- int? dialogWidth,
- int? dialogHeight,
- bool? dialogBottom,
- int? dialogOffsetX,
- int? dialogOffsetY,
- List<
int> ? dialogCornerRadiusArray, - int? pageBackgroundRadius,
- String? webViewStatusBarColor,
- bool? webSupportedJavascript,
- String? authPageActIn,
- String? activityOut,
- String? authPageActOut,
- String? activityIn,
- int? screenOrientation,
- bool? logBtnToastHidden,
- double? dialogAlpha,
- int? privacyOperatorIndex,
- List<
String> ? privacyConectTexts, - String? protocolAction,
- String? packageName,
- String? loadingBackgroundPath,
- bool? isHiddenLoading,
- bool? isHiddenCustom,
- CustomThirdView? customThirdView,
- String? backgroundColor,
- String? pageBackgroundPath = "assets/background_image.jpeg",
- ContentMode? backgroundImageContentMode = ContentMode.scaleAspectFill,
- bool? alertBarIsHidden,
- String? alertTitleBarColor,
- bool? alertCloseItemIsHidden,
- String? alertCloseImagePath,
- int? alertCloseImageX,
- int? alertCloseImageY,
- int? alertCloseImageW,
- int? alertCloseImageH,
- String? alertBlurViewColor,
- double? alertBlurViewAlpha,
- PNSPresentationDirection? presentDirection,
- bool? privacyAlertIsNeedShow = false,
- bool? privacyAlertIsNeedAutoLogin = true,
- bool privacyAlertMaskIsNeedShow = true,
- double privacyAlertMaskAlpha = 0.5,
- String? privacyAlertMaskColor,
- double privacyAlertAlpha = 1,
- String? privacyAlertBackgroundColor,
- String? privacyAlertEntryAnimation,
- String? privacyAlertExitAnimation,
- List<
int> ? privacyAlertCornerRadiusArray, - Gravity? privacyAlertAlignment,
- int? privacyAlertWidth,
- int? privacyAlertHeight,
- int? privacyAlertOffsetX,
- int? privacyAlertOffsetY,
- String? privacyAlertTitleContent,
- String? privacyAlertTitleBackgroundColor,
- Gravity? privacyAlertTitleAlignment,
- int? privacyAlertTitleOffsetX,
- int? privacyAlertTitleOffsetY,
- int? privacyAlertTitleTextSize = 18,
- String? privacyAlertTitleColor,
- String? privacyAlertContentBackgroundColor,
- int? privacyAlertContentTextSize = 16,
- Gravity? privacyAlertContentAlignment,
- String? privacyAlertContentColor,
- String? privacyAlertContentBaseColor,
- bool? privacyAlertProtocolNameUseUnderLine = false,
- int? privacyAlertContentHorizontalMargin,
- int? privacyAlertContentVerticalMargin,
- String? privacyAlertBtnBackgroundImgPath,
- String? privacyAlertBefore,
- String? privacyAlertEnd,
- String? privacyAlertBtnText,
- String? privacyAlertBtnTextColor,
- int? privacyAlertBtnTextSize = 18,
- int? privacyAlertBtnWidth,
- int? privacyAlertBtnHeigth,
- bool? privacyAlertCloseBtnShow = true,
- String? privacyAlertCloseImagPath,
- ScaleType? privacyAlertCloseScaleType,
- int? privacyAlertCloseImgWidth,
- int? privacyAlertCloseImgHeight,
- String? privacyAlertOwnOneColor,
- String? privacyAlertOwnTwoColor,
- String? privacyAlertOwnThreeColor,
- String? privacyAlertOperatorColor,
- bool tapPrivacyAlertMaskCloseAlert = true,
- bool? autoQuitPage = true,
- bool? isHideToast = false,
- String? toastText = '请先阅读用户协议',
- String? toastBackground = '#FF000000',
- String? toastColor = '#FFFFFFFF',
- int? toastPadding = 9,
- int? toastMarginTop = 0,
- int? toastMarginBottom = 0,
- String? toastPositionMode = 'bottom',
- 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);