Slider

作者: 不二客 | 来源:发表于2020-09-03 10:54 被阅读0次

    const Slider({
    Key key,
    @required this.value, //当前值
    @required this.onChanged,//滑动改变
    this.onChangeStart,//开始滑动位置
    this.onChangeEnd,//结束滑动位置
    this.min = 0.0,//最小值
    this.max = 1.0,//最大值
    this.divisions,//分为几个等级
    this.label,//滑动气泡
    this.activeColor,//滑动过的颜色
    this.inactiveColor,//未滑动过的颜色
    this.mouseCursor,
    this.semanticFormatterCallback,
    this.focusNode,
    this.autofocus = false,
    })

    SliderTheme

    SliderThemeData

    SliderThemeData({
    this.trackHeight, //滑动线的高度
    this.activeTrackColor,//滑动过的颜色
    this.inactiveTrackColor,//未滑动过的颜色
    this.disabledActiveTrackColor,//禁用的活动轨迹颜色
    this.disabledInactiveTrackColor,//禁用活动刻度线颜色
    this.activeTickMarkColor,//活动刻度线颜色
    this.inactiveTickMarkColor,//非活动刻度线颜色
    this.disabledActiveTickMarkColor,//禁用活动刻度线颜色
    this.disabledInactiveTickMarkColor,//禁用非活动刻度线颜色
    this.thumbColor,//拇指
    this.overlappingShapeStrokeColor,//重叠形状笔划颜色
    this.disabledThumbColor,
    this.overlayColor,//覆盖颜色
    this.valueIndicatorColor,//数值指示器颜色
    this.overlayShape,//覆盖形状
    this.tickMarkShape,//刻度线形状
    this.thumbShape,//拇指形状
    this.trackShape,//滑动线形状
    this.valueIndicatorShape,/数值指示器形状
    this.rangeTickMarkShape,//范围刻度线形状
    this.rangeThumbShape,//范围拇指形状
    this.rangeTrackShape,//范围轨道形状
    this.rangeValueIndicatorShape,//范围值指示器形状
    this.showValueIndicator,//是否显示值指示器
    this.valueIndicatorTextStyle,//指示器文字样式
    this.minThumbSeparation,//最小拇指分离
    this.thumbSelector,//拇指选择器
    })

    SliderTrackShape 通道

    RoundedRectSliderTrackShape 圆形
    RectangularSliderTrackShape 矩形

    相关文章

      网友评论

          本文标题:Slider

          本文链接:https://www.haomeiwen.com/subject/ebexsktx.html