EsigErrorWidget class

Widgets distinado aos casos nos quais ocorreu um erro interno no app e alguma tarefa não pôde ser completada.

Inheritance

Constructors

EsigErrorWidget(String mensagem, {Key? key, String? ilustracaoAsset, BoxConstraints? tamanhoIlustracao, String? titulo, double? tituloFontSize, EdgeInsets tituloPadding = const EdgeInsets.all(8.0), double? mensagemFontSize, EdgeInsets mensagemPadding = const EdgeInsets.all(8.0), void onTryAgain()?, Color? tryAgainBackgroundColor, Color? tryAgainTextColor, double? altura, double? largura, Color? corTexto})
const

Properties

altura double?
Altura total do widget. Parâmetro serve para evitar usar o código abaixo toda vez que implementar este Widget.
final
corTexto Color?
Cor do texto do título e mensagem
final
hashCode int
The hash code for this object.
no setterinherited
ilustracaoAsset String?
Caminho do asset declarado no pubspec.yaml. A imagem está configurada com fit: BoxFit.contain.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
largura double?
Largura total do widget. Parâmetro serve para evitar usar o código abaixo toda vez que implementar este Widget.
final
mensagem String
Mensagem explicando o motivo deste widget aparecer.
final
mensagemFontSize double?
Tamanho da mensagem.
final
mensagemPadding EdgeInsets
Padding em torno da mensagem.
final
onTryAgain → (void Function()?)
Função chamada ao apertar botão TENTAR NOVAMENTE. O botão só é exibido se o parâmetro receber um valor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tamanhoIlustracao BoxConstraints?
Constraints máximos e mínimos da ilustração.
final
titulo String?
Texto em negrito logo abaixo da ilustração e acima da menssagem.
final
tituloFontSize double?
Tamanho do texto no título.
final
tituloPadding EdgeInsets
Padding em torno do título.
final
tryAgainBackgroundColor Color?
cor no fundo do botão. Valor é atribuído ao backgroundColor do ButtonStyle.
final
tryAgainTextColor Color?
Cor do texto dentro do botão de TENTAR NOVAMENTE. Valor é atribuído ao foregroundColor do ButtonStyle.
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}) 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