EditorWidgetsTheme class final

The sizes a row in a properties panel is built from.

of(context) never returns null. A widget from this package dropped into an application that has not registered one on its ThemeData still renders at defaults — an application opts in only once it wants a size other than the default, the same relation ColorScheme has with a widget that never customises it.

Inheritance
Annotations

Constructors

EditorWidgetsTheme({required double rowHeight, required double labelWidth, required double fieldRadius, required double thumbnailSize})
const

Properties

denseFields → bool
Whether a field in a row this tall is drawn dense.
no setter
fieldRadius → double
The corner radius a text field or a swatch draws with.
final
hashCode → int
The hash code for this object.
no setterinherited
labelWidth → double
How wide a row's own leading label column is — FieldRow's own name column, once it arrives.
final
rowHeight → double
The height of one row in a properties panel: a NumberField, a ColorField's own swatch, a slider row.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumbnailSize → double
The edge of a square texture thumbnail — TextureSlotRow's own preview, once it arrives.
final
type → Object
The extension's type.
no setterinherited

Methods

copyWith({double? rowHeight, double? labelWidth, double? fieldRadius, double? thumbnailSize}) → EditorWidgetsTheme
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
fieldPadding({double horizontal = 9}) → EdgeInsets
The padding a text field in this row takes, so that the field fills the row rather than floating inside it. horizontal is the field's own, since a number and a hex colour want different room across.
lerp(covariant EditorWidgetsTheme? other, double t) → EditorWidgetsTheme
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.
inherited

Static Methods

of(BuildContext context) → EditorWidgetsTheme
The EditorWidgetsTheme registered on the ambient ThemeData, or defaults when none is.

Constants

defaults → const EditorWidgetsTheme
What every widget in this package falls back to when the ambient ThemeData carries no EditorWidgetsTheme of its own.