LessonView class

A lição desenhada.

Inheritance

Constructors

LessonView({Key? key, required Lesson lesson, required CourseFiles files, required AppClock clock, Color highlightColor = ZClassicPalette.accent, double haloWidth = 1.0, NoteNaming naming = NoteNaming.latin, ChordNotation chordNotation = ChordNotation.american, SoundEngine? engine, ScoreRenderer? renderer, bool hasKeyboard = true, Map<String, ExerciseCardState> exerciseStates = const {}, void onExerciseStart(ExerciseSpec spec)?, LessonLinkOpener? openLink, LessonAudioPlayer audioPlayerFactory()?, SingleAudioPlay? audioCoordinator, String? exerciseNotice})
const

Properties

audioCoordinator → SingleAudioPlay?
Para teste ou para dividir a coordenação "um só por vez" com o pai.
final
audioPlayerFactory → LessonAudioPlayer Function()?
Para teste: tocador de áudio falso.
final
chordNotation → ChordNotation
A grafia da cifra nas grades (zywny-chart): a do curso, ou a das configurações.
final
clock → AppClock
O relógio do app (CT05b), repassado às partituras da lição.
final
engine → SoundEngine?
Motor já resolvido para a saída escolhida; null = partituras mudas.
final
exerciseNotice → String?
Aviso de lição bloqueada, repassado aos cartões de exercício (I09).
final
exerciseStates → Map<String, ExerciseCardState>
Estado por id de exercício (o progresso guardado é do I09).
final
files → CourseFiles
final
haloWidth → double
Brilho em volta da nota das partituras (SettingsState.haloWidth).
final
hashCode → int
The hash code for this object.
no setterinherited
hasKeyboard → bool
Sem teclado MIDI conectado: os tipos MIDI mostram "Precisa do teclado".
final
highlightColor → Color
Cor de destaque das configurações para o highlight da partitura.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lesson → Lesson
final
naming → NoteNaming
final
onExerciseStart → void Function(ExerciseSpec spec)?
Chamado com o spec ao tocar "Começar" (o I09 navega; aqui é callback).
final
Para teste: abre links/vídeos sem o navegador.
final
renderer → ScoreRenderer?
Para teste: renderizador falso das partituras.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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