ArnaThemeData class

Styling specifications for an ArnaTheme.

All constructor parameters can be null.

Parameters can also be partially specified, in which case some parameters will cascade down to other dependent parameters to create a cohesive visual effect.

See also:

Mixed in types
Annotations

Constructors

ArnaThemeData({Brightness? brightness, Color? accentColor, ArnaTextTheme? textTheme})
Create an ArnaThemeData that's used to configure an ArnaTheme.
factory
ArnaThemeData.dark()
A default dark theme.
factory
ArnaThemeData.light()
A default light theme.
factory
ArnaThemeData.raw({required Color accentColor, required Brightness? brightness, required ArnaTextTheme textTheme})
Create an ArnaThemeData given a set of exact values. All the values must be specified. They all must also be non-null.
const

Properties

accentColor Color
A color used on interactive elements of the theme.
final
brightness Brightness?
The brightness override for Arna descendants.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textTheme ArnaTextTheme
Text styles used by Arna widgets.
final

Methods

copyWith({Brightness? brightness, Color? accentColor, ArnaTextTheme? textTheme}) ArnaThemeData
Creates a copy of this theme but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

lerp(ArnaThemeData a, ArnaThemeData b, double t) ArnaThemeData
Linearly interpolate between two themes.