LyricReaderState class

Inheritance
Mixed-in types

Constructors

LyricReaderState()

Properties

cacheBox BoxConstraints?
getter/setter pair
cacheLine int
缓存下lineIndex避免重复获取
getter/setter pair
centerLyricIndexStream StreamController<int>
getter/setter pair
context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isDrag bool
getter/setter pair
isShowSelectLineWidget bool
getter/setter pair
isWait bool
等待恢复
getter/setter pair
lyricPaint LyricsReaderPaint
getter/setter pair
mounted bool
Whether this State object is currently in a tree.
no setterinherited
mSize Size
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
waitTimer Timer?
getter/setter pair
widget LyricsReader
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
animationOffset(double offset) → void
update progress use animation
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildReaderWidget() Container
build reader widget
buildSelectLineWidget() Positioned
buildTouchReader(dynamic child) Widget
support touch event
createTicker(TickerCallback onTick) Ticker
Creates a ticker with the given callback.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant LyricsReader oldWidget) → void
Called whenever the widget configuration changes.
override
dispose() → void
Called when this object is removed from the tree permanently.
override
disposeFiling() → dynamic
disposeHighlight() → dynamic
disposeLine() → dynamic
disposeSelectLineDelay() → dynamic
getTextPaint(String? text, TextStyle style, {Size? size, TextPainter? linePaint}) TextPainter
获取文本高度
handleDragEnd(DragEndDetails event) → dynamic
handleHighlight() → void
enable highlight animation if playing status is null,no highlight.
handleSize() → dynamic
handle widget size default screenWidth,screenWidth if outside box has limit,then select min value
initState() → void
Called when this object is inserted into the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
realUpdateOffset(double offset, [bool animation = true]) → void
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
refreshLyricHeight(Size size) → dynamic
calculate all line draw info
resumeSelectLineOffset() → dynamic
handle select line
safeLyricOffset(double offset, [bool animation = true]) → dynamic
update progress after verify
scrollToPlayLine([bool animation = true]) → void
select current play line
selectLine(int line) → void
selectLineAndScrollToPlayLine([bool animation = true]) → void
setSelectLine(bool isShow) → void
show select line
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
setTextInlineInfo(LyricDrawInfo drawInfo, LyricUI ui, String text) → void
setTextSpanDrawInfo(LyricUI ui, List<LyricSpanInfo> spanList, TextPainter painter) → void
计算span宽度
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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