flutter_seekbar library

Classes

BasicSeekbar
要显示的刻度值 如果要自定义刻度值,数组中需要包含这个实体类 List
ProgressValue
回调的返回值 SeekBar( progresseight: 5, value: 0.5, min: -10, max: 80, sectionCount: 4, sectionRadius: 6, sectionColor: Colors.red, hideBubble: false, alwaysShowBubble: true, bubbleRadius: 14, bubbleColor: Colors.purple, bubbleTextColor: Colors.white, bubbleTextSize: 14, bubbleMargin: 4, onValueChanged: (v) { print( '当前进度:${v.progress} ,当前的取值:${v.value}'); })
SectionTextModel
要显示的刻度值 如果要自定义刻度值,数组中需要包含这个实体类 List
SeekBar

Functions

getParagraph({String text = "", double fontsize = 0, Color textColor = const Color.fromARGB(0, 0, 0, 0), Size textSize = Size.zero}) Paragraph
生成一个字体的形状,来画出来
getTextWidth({String text = "", double fontsize = 0}) Size
获取字体的宽高,放在size中