AppTimeline class final

Uma linha do tempo CRONOLÓGICA: eventos que aconteceram, do mais recente para o mais antigo.

Por que não é o AppStepper

O stepper indica PROGRESSO num processo com começo, meio e fim conhecidos — ele tem passo atual, passos futuros e a promessa de que se chega ao último. Uma trilha de eventos não tem nada disso: ela não termina, não tem passo "atual", e o que veio antes não habilita o que veio depois. Usar um pelo outro faz a tela prometer uma sequência que não existe.

Semântica

É uma LISTA semântica, navegável item a item (Screen Contract §11). O trilho vertical é decoração e sai da árvore de acessibilidade — quem navega por leitor de tela ouve os eventos, não a linha que os conecta.

AppTimeline(
  itemCount: eventos.length,
  itemBuilder: (BuildContext context, int i) => AuditEventTile(eventos[i]),
  footer: carregando ? const AppCircularLoading() : null,
)
Inheritance

Constructors

AppTimeline({required NullableIndexedWidgetBuilder itemBuilder, required int itemCount, ScrollController? controller, Widget? footer, IndexedWidgetBuilder? markerBuilder, EdgeInsetsGeometry? padding, bool shrinkWrap = false, Key? key})
Cria um AppTimeline.
const

Properties

controller ScrollController?
Controlador de rolagem. Necessário para preservar a posição ao fechar o detalhe (Screen Contract §3).
final
Slot do rodapé: "carregar mais", spinner de página seguinte, ou o aviso de fim da trilha. Fica DENTRO da rolagem, junto ao último item — fora dela, ele ficaria visível o tempo todo e a pessoa clicaria antes de chegar ao fim.
final
hashCode int
The hash code for this object.
no setterinherited
itemBuilder NullableIndexedWidgetBuilder
Constrói o CONTEÚDO de cada evento. O trilho e o marcador são deste widget.
final
itemCount int
Quantos eventos.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
markerBuilder IndexedWidgetBuilder?
Marcador de cada item. Default: um ponto. Um evento negado pode querer outro, e a cor não pode ser a única diferença (§11).
final
padding EdgeInsetsGeometry?
Padding externo da lista.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shrinkWrap bool
true quando a timeline vive dentro de outra rolagem.
final

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