AppContentStyle class final

Folha de estilo compartilhada por AppMarkdown e AppHtml.

Um único objeto para os dois renderers — é o que garante que o mesmo documento fique idêntico vindo de Markdown ou de HTML. Todos os valores saem de AppTheme.of(context), então acompanham marca e claro/escuro sem nada hardcoded.

Annotations

Constructors

AppContentStyle({required TextStyle base, required TextStyle h1, required TextStyle h2, required TextStyle h3, required TextStyle h4, required TextStyle h5, required TextStyle h6, required TextStyle code, required TextStyle link, required TextStyle blockquote, required Color codeBackground, required Color inlineCodeBackground, required Color blockquoteBar, required Color dividerColor, required double blockSpacing, required double listIndent, required double inlineImageMaxHeight, required EdgeInsets codePadding, required BorderRadius codeBorderRadius, required BorderRadius blockquoteBarRadius})
Constrói a folha explicitamente. Na prática prefira AppContentStyle.resolve e sobrescreva com copyWith.
const
AppContentStyle.resolve(BuildContext context, {TextStyle? base, Color? color})
Resolve a folha a partir do tema ativo.
factory

Properties

base TextStyle
Estilo do texto corrido (parágrafos, itens de lista, células).
final
blockquote TextStyle
Estilo do texto dentro de citações.
final
blockquoteBar Color
Barra vertical à esquerda da citação.
final
blockquoteBarRadius BorderRadius
Raio das pontas da barra vertical da citação (blockquote).
final
blockSpacing double
Espaço vertical entre blocos irmãos.
final
code TextStyle
Estilo do código (inline e em bloco).
final
codeBackground Color
Fundo do bloco de código.
final
codeBorderRadius BorderRadius
Raio do bloco de código.
final
codePadding EdgeInsets
Padding interno do bloco de código.
final
dividerColor Color
Cor da régua horizontal (<hr>).
final
h1 TextStyle
Estilos de heading, h1 a h6.
final
h2 TextStyle
final
h3 TextStyle
final
h4 TextStyle
final
h5 TextStyle
final
h6 TextStyle
final
hashCode int
The hash code for this object.
no setterinherited
inlineCodeBackground Color
Fundo do código inline.
final
inlineImageMaxHeight double
Altura máxima de uma imagem inline, para que não estoure a linha.
final
Estilo dos links.
final
listIndent double
Recuo por nível de lista aninhada.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({TextStyle? base, TextStyle? h1, TextStyle? h2, TextStyle? h3, TextStyle? h4, TextStyle? h5, TextStyle? h6, TextStyle? code, TextStyle? link, TextStyle? blockquote, Color? codeBackground, Color? inlineCodeBackground, Color? blockquoteBar, Color? dividerColor, double? blockSpacing, double? listIndent, double? inlineImageMaxHeight, EdgeInsets? codePadding, BorderRadius? codeBorderRadius, BorderRadius? blockquoteBarRadius}) AppContentStyle
Cópia com um ou mais campos sobrescritos.
headingFor(int level) TextStyle
Estilo do heading de level (1–6).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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