ZefyrThemeData class

Holds colors and typography values for a Zefyr design theme.

To obtain the current theme, use ZefyrTheme.of.

Annotations

Constructors

ZefyrThemeData({LineTheme defaultLineTheme, AttributeTheme attributeTheme, double indentWidth, ToolbarTheme toolbarTheme})
Creates a ZefyrThemeData given a set of exact values.
const
ZefyrThemeData.fallback(BuildContext context)
The default editor theme.
factory

Properties

attributeTheme AttributeTheme
The text styles, padding and decorations used to render text with different style attributes.
final
defaultLineTheme LineTheme
Default theme used for document lines in Zefyr editor. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
indentWidth double
The width of indentation used for blocks (lists, quotes, code).
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
toolbarTheme ToolbarTheme
The colors used to render editor toolbar.
final

Methods

copyWith({LineTheme defaultLineTheme, AttributeTheme attributeTheme, double indentWidth, ToolbarTheme toolbarTheme}) ZefyrThemeData
Creates a copy of this theme but with the given fields replaced with the new values.
merge(ZefyrThemeData other) ZefyrThemeData
Creates a new ZefyrThemeData where each property from this object has been merged with the matching text style from the other object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override