DVDocsTheme class

Where the site draws: canvas behind everything, ink on it, muted for the asides, rule for the lines between sections, codeSurface behind source, and warn for the one thing a page has to flag.

Inheritance
Annotations

Constructors

DVDocsTheme({required Brightness brightness, required Color canvas, required Color ink, required Color muted, required Color rule, required Color codeSurface, required Color warn})
const
DVDocsTheme.dark()
The stylesheet's dark palette: #161615 #ececea #a3a39e #33332f #22221f #ffab70.
const
DVDocsTheme.light()
The stylesheet's light palette: #fbfbfa #1d1d1b #63635e #e2e2dd #f1f1ee #9a3b00.
const

Properties

brightness → Brightness
final
canvas → Color
final
codeSurface → Color
final
hashCode → int
The hash code for this object.
no setteroverride
ink → Color
final
muted → Color
final
rule → Color
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Object
The extension's type.
no setterinherited
warn → Color
What has to stand out: a reference to something that is gone, a finding, and the page you are on.
final

Methods

copyWith({Brightness? brightness, Color? canvas, Color? ink, Color? muted, Color? rule, Color? codeSurface, Color? warn}) → DVDocsTheme
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant DVDocsTheme? other, double t) → DVDocsTheme
Linearly interpolate with another ThemeExtension object.
override
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.
override

Static Methods

of(BuildContext context) → DVDocsTheme
This site's colours for context, light when there is no theme to ask.