CalenderSeries class

组件属性 相关fontStyle 优先级如下 selectFontStyle > fontStyle > forbidStyle = subFontStyle

Inheritance

Constructors

CalenderSeries(int year, int month, num shapeSize, {CalendarShape? shape, Color? middleShapeColor, Color? backgroundColor, bool needDrawMarking = false, CalendarShape? markingShape, num markingSize = 2, num markingTopMargin = 2, Color? markingColor, num? markingRadius, num? headerHeight, num dividerHeight = 0, Color? dividerColor, Color? lineColor, FontStyle? weekFontStyle, FontStyle? selectFontStyle, FontStyle? selectMiddleFontStyle, FontStyle fontStyle = const FontStyle(14, Colors.black54), FontStyle? forbidFontStyle, FontStyle? subFontStyle, bool sunFirst = false, bool autoLink = true, bool resetWhenAutoLinkClick = false, bool drawMiddleShape = false, bool drawLastMonth = true, bool drawNextMonth = true, List<DateTime>? defaultDate, int? maxChooseCount, DateRange? chooseRange, bool onChooseFilter(int year, int month, int date)?, String dayFormat(int year, int month, int date)?, String weekFormat(int weekIndex)?, FontStyle weekStyleGenerator(int weekIndex)?, CalendarItemStyle styleGenerator(int year, int month, int date, bool chosen, bool isToday, bool isLastMonth, bool isNextMonth)?, void onChange(List<DateTime> values)?, void onClickForbidDay(DateTime forbidDay)?, AnimatorProps? animation, bool clip = true, bool touch = true, int z = 0})

Properties

animation AnimatorProps?
坐标系
getter/setter pairinherited
是否自动链接相邻点之间的日期 默认为true */
getter/setter pair
backgroundColor Color?
getter/setter pair
calendarIndex int
getter/setter pairinherited
chooseRange ↔ DateRange?
可以选择的时间范围,如果为空则都可以选择 */
getter/setter pair
clip bool
getter/setter pairinherited
coordSystem CoordSystem?
坐标系系统
getter/setter pairinherited
dayFormat String Function(int year, int month, int date)?
用于格式化日期显示 给定一个用年月日标识的日期返回其格式化的文字 tips 月份是从1开始的
getter/setter pair
defaultDate List<DateTime>?
默认选中的数据
getter/setter pair
dividerColor Color?
getter/setter pair
dividerHeight num
getter/setter pair
drawLastMonth bool
getter/setter pair
drawMiddleShape bool
是否绘制中间点日期的Shape */
getter/setter pair
drawNextMonth bool
getter/setter pair
fontStyle ↔ FontStyle
一般数据的文字样式 */
getter/setter pair
forbidFontStyle ↔ FontStyle?
禁止选择数据的文字样式 */
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerHeight num?
getter/setter pair
lineColor Color?
getter/setter pair
markingColor Color?
getter/setter pair
markingRadius num?
getter/setter pair
markingShape ↔ CalendarShape?
getter/setter pair
markingSize num
getter/setter pair
markingTopMargin num
getter/setter pair
maxChooseCount int?
最大可以选择的(该值受到defaultDate和chooseRange的影响)天数 */
getter/setter pair
middleShapeColor Color?
getter/setter pair
month int
getter/setter pair
needDrawMarking bool
getter/setter pair
onChange ↔ void Function(List<DateTime> values)?
getter/setter pair
onChooseFilter bool Function(int year, int month, int date)?
作用同chooseRange一样 但是优先级高且更加灵活 */
getter/setter pair
onClickForbidDay ↔ void Function(DateTime forbidDay)?
getter/setter pair
parallelIndex int
getter/setter pairinherited
polarAxisIndex int
getter/setter pairinherited
radarIndex int
getter/setter pairinherited
resetWhenAutoLinkClick bool
当autoLink 为TRUE时,如果已选择了连续多日, 此时点击中间点是直接保留当前点击的日期的还是 以当前日期为起点或终点进行截取 默认为false
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectFontStyle ↔ FontStyle?
选中的文字样式 */
getter/setter pair
selectMiddleFontStyle ↔ FontStyle?
选中日期的中间文字样式 */
getter/setter pair
shape ↔ CalendarShape?
getter/setter pair
shapeSize num
getter/setter pair
styleGenerator ↔ CalendarItemStyle Function(int year, int month, int date, bool chosen, bool isToday, bool isLastMonth, bool isNextMonth)?
getter/setter pair
subFontStyle ↔ FontStyle?
子文字的样式(上月下月文字) */
getter/setter pair
sunFirst bool
一周的第一天是否为周日 默认false */
getter/setter pair
tooltip ToolTip?
getter/setter pairinherited
touch bool
getter/setter pairinherited
weekFontStyle ↔ FontStyle?
周文字样式 */
getter/setter pair
weekFormat String Function(int weekIndex)?
getter/setter pair
weekStyleGenerator ↔ FontStyle Function(int weekIndex)?
getter/setter pair
xAxisIndex int
坐标轴取值(和coordSystem配合实现定位) (默认的所有坐标轴开始都是为0)
getter/setter pairinherited
yAxisIndex int
getter/setter pairinherited
year int
getter/setter pair
z int
getter/setter pairinherited

Methods

addListener(ValueCallback<int> callback) → void
下面是对ValueNotifier的简单封装
inherited
change(int notifyData) → void
inherited
dispose() → void
inherited
hasListeners() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(ValueCallback<int> callback) → void
inherited
toString() String
A string representation of this object.
inherited
update([bool relayout = false]) → void
当数据发生改变后,需要调用该方法,进行重绘或者重新布局
inherited

Operators

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