AliAuthModel class

登录窗口配置

Constructors

AliAuthModel(String? sk, bool? isDialog, bool? isDebug, bool? customPageBackgroundLyout, String? statusBarColor, bool? statusBarHidden, int? statusBarUIFlag, bool? lightColor, String? navColor, String? navText, String? navTextColor, int? navTextSize, String? navReturnImgPath, int? navReturnImgWidth, int? navReturnImgHeight, bool? navReturnHidden, bool? navHidden, String? webViewStatusBarColor, String? webNavColor, String? webNavTextColor, int? webNavTextSize, String? webNavReturnImgPath, String? customNavReturnImageLayoutName, String? bottomNavColor, bool? logoHidden, String? logoImgPath, int? logoWidth, int? logoHeight, int? logoOffsetY, String? logoScaleType, bool? sloganHidden, String? sloganText, String? sloganTextColor, int? sloganTextSize, int? sloganOffsetY, String? numberColor, int? numberSize, int? numFieldOffsetY, int? numberFieldOffsetX, int? numberLayoutGravity, String? logBtnText, String? logBtnTextColor, int? logBtnTextSize, int? logBtnWidth, int? logBtnHeight, int? logBtnMarginLeftAndRight, String? logBtnBackgroundPath, int? logBtnOffsetY, String? loadingImgPath, int? logBtnOffsetX, int? logBtnLayoutGravity, String? appPrivacyOne, String? appPrivacyTwo, String? appPrivacyColor, int? privacyOffsetY, bool? privacyState, int? protocolGravity, int? privacyTextSize, int? privacyMargin, String? privacyBefore, String? privacyEnd, bool? checkboxHidden, int? checkBoxWH, String? changeBtnTitle, int? changeBtnTitleSize, String? changeBtnTitleColor, bool? changeBtnIsHidden, String? uncheckedImgPath, String? checkedImgPath, String? vendorPrivacyPrefix, String? vendorPrivacySuffix, int? protocolLayoutGravity, int? privacyOffsetX, bool? logBtnToastHidden, bool? switchAccHidden, String? switchAccText, String? switchAccTextColor, int? switchAccTextSize, int? switchOffsetY, bool? isHiddenCustom, String? customThirdImgPaths, int? customThirdImgWidth, int? customThirdImgHeight, int? customThirdImgSpace, int? customThirdImgOffsetY, String? authPageActIn, String? authPageActOut, String? pageBackgroundPath, double? dialogAlpha, int? dialogWidth, int? dialogHeight, int? dialogOffsetX, int? dialogOffsetY, bool? dialogBottom, bool? alertBarIsHidden, String? alertTitleBarColor, bool? alertCloseItemIsHidden, String? alertCloseImage, String? alertBlurViewColor, double? alertBlurViewAlpha, String? alertCornerRadiusArray)
AliAuthModel.fromJson(Map<String, dynamic> srcJson)
factory

Properties

alertBarIsHidden bool?
ios 弹窗设置参数 是否隐藏bar bar 为true 时 alertCloseItemIsHidden 也为true
final
alertBlurViewAlpha double?
底部蒙层背景透明度,默认0.5 0 ~ 1
final
alertBlurViewColor String?
底部蒙层背景颜色,默认黑色
final
alertCloseImage String?
关闭按钮的图片路径
final
alertCloseItemIsHidden bool?
bar的关闭按钮
final
alertCornerRadiusArray String?
窗口圆角 顺序为左上,左下,右下,右上,需要填充4个值,不足4个值则无效,如果值<=0则为直角 */
final
alertTitleBarColor String?
bar的背景色 默认颜色为白色 #FFFFFF
final
appPrivacyColor String?
设置隐私条款名称颜⾊(基础⽂字颜⾊,协议⽂字颜⾊)
final
appPrivacyOne String?
  • 授权⻚隐私栏 设置开发者隐私条款 1 名称和URL(名称,url) String,String
  • final
    appPrivacyTwo String?
    设置开发者隐私条款 2 名称和URL(名称,url) String,String
    final
    authPageActIn String?
  • ⻚⾯相关函数 设置授权⻚进场动画
  • final
    authPageActOut String?
    设置授权⻚退出动画
    final
    bottomNavColor String?
    设置底部虚拟按键背景⾊(系统版本 5.0 以上可设置)
    final
    changeBtnIsHidden bool?
    是否隐藏切换标题
    final
    changeBtnTitle String?
    切换标题
    final
    changeBtnTitleColor String?
    切换标题颜色
    final
    changeBtnTitleSize int?
    切换标题大小
    final
    checkboxHidden bool?
    设置复选框是否隐藏
    final
    checkBoxWH int?
    勾选框大小宽高等比 17*17 -> 17
    final
    checkedImgPath String?
    设置复选框选中时图⽚
    final
    customNavReturnImageLayoutName String?
    设置返回按钮的自定义名称,注意需要将布局文件添加在android/res/layout文件夹中 如果想要插件自带的返回布局,请设置0
    final
    customPageBackgroundLyout bool?
    是否添加自定义背景布局
    final
    customThirdImgHeight int?
    第三方图标高度
    final
    customThirdImgOffsetY int?
    第三方按钮的Y 默认值距离第三方标题向下20 大于50的时候为相对于状态栏的距离 即为从顶部向下多少
    final
    customThirdImgPaths String?
    第三方图标相关参数只对iOS有效,android 请使用布局文件实现 第三方图标按钮居中布局 第三方布局图片路径
    final
    customThirdImgSpace int?
    第三方图标间距
    final
    customThirdImgWidth int?
    第三方图标宽度
    final
    dialogAlpha double?
    dialog 蒙层的透明度
    final
    dialogBottom bool?
    设置授权⻚是否居于底部
    final
    dialogHeight int?
    设置弹窗模式授权⻚⾼度,单位dp,设置⼤于0即为弹窗模式
    final
    dialogOffsetX int?
    设置弹窗模式授权⻚X轴偏移,单位dp
    final
    dialogOffsetY int?
    设置弹窗模式授权⻚Y轴偏移,单位dp
    final
    dialogWidth int?
    设置弹窗模式授权⻚宽度,单位dp,设置⼤于0即为弹窗模式
    final
    hashCode int
    The hash code for this object.
    no setterinherited
    isDebug bool?
    是否开启debug模式
    final
    isDialog bool?
    是否使用dialog弹窗登录
    final
    isHiddenCustom bool?
  • 第三方配置 是否隐藏第三方布局
  • final
    lightColor bool?
    设置状态栏字体颜⾊(系统版本 6.0 以上可21设置⿊⾊、⽩⾊)。true 为⿊⾊
    final
    loadingImgPath String?
    设置登录loading dialog 背景图⽚路径24
    final
    logBtnBackgroundPath String?
    设置登录按钮背景图⽚路径 是一个逗号拼接的图片路径 例如:'assets/login_btn_normal.png,assets/login_btn_unable.png,assets/login_btn_press.png' 如果设置错误或者找不到图片则使用默认样式
    final
    logBtnHeight int?
    设置登录按钮⾼度,单位dp
    final
    logBtnLayoutGravity int?
    设置登陆按钮布局对⻬⽅式,只⽀持Gravity.CENTER_HORIZONTAL、Gravity.LEFT、Gravity.RIGHT三种对⻬⽅式
    final
    logBtnMarginLeftAndRight int?
    设置登录按钮相对于屏幕左右边缘边距
    final
    logBtnOffsetX int?
    设置登陆按钮X轴偏移量,如果设置了setLogBtnMarginLeftAndRight,并且布局对⻬⽅式为左对⻬或者右对⻬,则会在margin的基础上再增加offsetX的偏移量,如果是居中对⻬,则仅仅会在居中的基础上再做offsetX的偏移。
    final
    logBtnOffsetY int?
    设置登录按钮相对导航栏顶部的位移,单位 dp
    final
    logBtnText String?
  • 授权⻚登录按钮 设置登录按钮⽂字
  • final
    logBtnTextColor String?
    设置登录按钮⽂字颜⾊
    final
    logBtnTextSize int?
    设置登录按钮⽂字⼤⼩
    final
    logBtnToastHidden bool?
    设置checkbox未勾选时,点击登录按钮toast是否显示
    final
    logBtnWidth int?
    设置登录按钮宽度,单位 dp
    final
    logoHeight int?
    设置logo 控件⾼度
    final
    logoHidden bool?
    2、授权⻚Logo 隐藏logo
    final
    logoImgPath String?
    设置logo 图⽚
    final
    logoOffsetY int?
    设置logo 控件相对导航栏顶部的位移,单位dp
    final
    logoScaleType String?
    设置logo图⽚缩放模式 FIT_XY, FIT_START, FIT_CENTER, FIT_END, CENTER, CENTER_CROP, CENTER_INSIDE
    final
    logoWidth int?
    设置logo 控件宽度
    final
    设置导航栏颜⾊
    final
    设置默认导航栏是否隐藏
    final
    设置导航栏返回按钮隐藏
    final
    设置导航栏返回键高度
    final
    设置导航栏返回键图⽚
    final
    设置导航栏返回键宽度
    final
    设置导航栏标题⽂字
    final
    设置导航栏标题⽂字颜⾊
    final
    设置导航栏标题⽂字⼤⼩
    final
    numberColor String?
    4、授权⻚号码栏 设置⼿机号码字体颜⾊
    final
    numberFieldOffsetX int?
    设置号码栏相对于默认位置的X轴偏移量,单位dp
    final
    numberLayoutGravity int?
    设置⼿机号掩码的布局对⻬⽅式,只⽀持Gravity.CENTER_HORIZONTAL、Gravity.LEFT、Gravity.RIGHT三种对⻬⽅式
    final
    numberSize int?
    设置⼿机号码字体⼤⼩
    final
    numFieldOffsetY int?
    设置号码栏控件相对导航栏顶部的位移,单位 dp
    final
    pageBackgroundPath String?
    设置授权⻚背景图drawable资源的⽬录,不需要加后缀,⽐如图⽚在drawable中的存放⽬录是res/drawablexxhdpi/loading.png,则传⼊参数为"loading",setPageBackgroundPath("loading")。
    final
    privacyBefore String?
    设置开发者隐私条款前置⾃定义25⽂案
    final
    privacyEnd String?
    设置开发者隐私条款尾部⾃定义⽂案
    final
    privacyMargin int?
    设置隐私条款距离⼿机左右边缘的边距,单位dp
    final
    privacyOffsetX int?
    设置隐私栏X轴偏移量,单位dp
    final
    privacyOffsetY int?
    设置隐私条款相对导航栏顶部的位移,单位dp
    final
    privacyState bool?
    设置隐私条款是否默认勾选
    final
    privacyTextSize int?
    设置隐私条款⽂字⼤⼩,单位sp
    final
    protocolGravity int?
    设置隐私条款⽂字对⻬⽅式,单位Gravity.xxx
    final
    protocolLayoutGravity int?
    设置隐私栏的布局对⻬⽅式,该接⼝控制了整个隐私栏(包含checkbox)在其⽗布局中的对⻬⽅式,⽽setProtocolGravity控制的是隐私协议⽂字内容在⽂本框中的对⻬⽅式
    final
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    sk String?
    aliyun sk
    final
    sloganHidden bool?
    3、授权⻚Slogan 隐藏slogan
    final
    sloganOffsetY int?
    设置slogan 相对导航栏顶部的 位移,单位dp
    final
    sloganText String?
    设置slogan ⽂字内容
    final
    sloganTextColor String?
    设置slogan ⽂字颜⾊
    final
    sloganTextSize int?
    设置slogan ⽂字⼤⼩
    final
    statusBarColor String?
    1、状态栏 statusBarColor 设置状态栏颜⾊(系统版本 5.0 以上可设置)
    final
    statusBarHidden bool?
    设置状态栏是否隐藏
    final
    statusBarUIFlag int?
    设置状态栏UI属性 View.SYSTEM_UI_FLAG_LOW_PROFILE View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN public static final int SYSTEM_UI_FLAG_FULLSCREEN = 4; public static final int SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2; public static final int SYSTEM_UI_FLAG_IMMERSIVE = 2048; public static final int SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096; public static final int SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024; public static final int SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512; public static final int SYSTEM_UI_FLAG_LAYOUT_STABLE = 256; public static final int SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR = 16; public static final int SYSTEM_UI_FLAG_LIGHT_STATUS_BAR = 8192;
    final
    switchAccHidden bool?
  • 切换⽅式控件 设置切换按钮点是否可⻅
  • final
    switchAccText String?
    设置切换按钮⽂字内容
    final
    switchAccTextColor String?
    设置切换按钮⽂字颜⾊
    final
    switchAccTextSize int?
    设置切换按钮⽂字⼤⼩
    final
    switchOffsetY int?
    设置换按钮相对导航栏顶部的位移,单位 dp
    final
    uncheckedImgPath String?
    设置复选框未选中时图⽚
    final
    vendorPrivacyPrefix String?
    设置运营商协议前缀符号,只能设置⼀个字符,且只能设置<>()《》【】『』[]()中的⼀个
    final
    vendorPrivacySuffix String?
    设置运营商协议后缀符号,只能设置⼀个字符,且只能设置<>()《》【】『』[]()中的⼀个
    final
    webNavColor String?
    设置协议⻚顶部导航栏背景⾊不设置则与授权⻚设置⼀致
    final
    webNavReturnImgPath String?
    设置协议⻚导航栏返回按钮图⽚路径不设置则与授权⻚设置⼀致
    final
    webNavTextColor String?
    设置协议⻚顶部导航栏标题颜⾊不设置则与授权⻚设置⼀致
    final
    webNavTextSize int?
    设置协议⻚顶部导航栏⽂字⼤⼩22不设置则与授权⻚设置⼀致
    final
    webViewStatusBarColor String?
    设置协议⻚状态栏颜⾊(系统版本 5.0 以上可设置)不设置则与授权⻚设置⼀致
    final

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toJson() Map<String, dynamic>
    toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited