Theme class

Color theme.

Annotations
  • @freezed

Constructors

Theme({@JsonKey(name: 'BgColor') required String bgColor, @JsonKey(name: 'BgHoverColor') required String bgHoverColor, @JsonKey(name: 'TextColor') required String textColor, @JsonKey(name: 'MutedTextColor') required String mutedTextColor, @JsonKey(name: 'AccentColor') required String accentColor, @JsonKey(name: 'AccentHoverColor') required String accentHoverColor, @JsonKey(name: 'TextOnAccentHoverColor') required String textOnAccentHoverColor, @JsonKey(name: 'MainAccent') required String mainAccent, @JsonKey(name: 'MainAccentHover') required String mainAccentHover, @JsonKey(name: 'MainLightAccent') required String mainLightAccent, @JsonKey(name: 'MainLink') required String mainLink, @JsonKey(name: 'brand') required String brand, @JsonKey(name: 'brand_dark') required String brandDark, @JsonKey(name: 'brand_light') required String brandLight, @JsonKey(name: 'back') required String back, @JsonKey(name: 'back_light') required String backLight, @JsonKey(name: 'back_dark') required String backDark, @JsonKey(name: 'success') required String success, @JsonKey(name: 'success_light') required String successLight, @JsonKey(name: 'error') required String error, @JsonKey(name: 'error_light') required String errorLight, @JsonKey(name: 'background') required String background, @JsonKey(name: 'tab_background') required String tabBackground, @JsonKey(name: 'chat_input_background') required String chatInputBackground, @JsonKey(name: 'substrate_background') required String substrateBackground, @JsonKey(name: 'modal_background') required String modalBackground, @JsonKey(name: 'title_background') required String titleBackground, @JsonKey(name: 'attention') required String attention, @JsonKey(name: 'attention_light') required String attentionLight, @JsonKey(name: 'font') FontColors? font, @JsonKey(name: 'message') MessageColors? message, @JsonKey(name: 'switcher') SwitcherColors? switcher, @JsonKey(name: 'button') ButtonColors? button, @JsonKey(name: 'input') InputColors? input, @JsonKey(name: 'ic') IconColors? icon, @JsonKey(name: 'web_base') WebBase? webBase, @Deprecated('Deprecated.') @JsonKey(name: 'AppAccentColor') required String appAccentColor, @Deprecated('Deprecated.') @JsonKey(name: 'AppPrimaryColor') required String appPrimaryColor})
const
factory
Theme.fromJson(Map<String, dynamic> json)
factory

Properties

accentColor String
AccentColor for web.
no setterinherited
accentHoverColor String
AccentHoverColor for web.
no setterinherited
appAccentColor String
Deprecated.
no setterinherited
appPrimaryColor String
Deprecated.
no setterinherited
attention String
Attention color for app.
no setterinherited
attentionLight String
Attention light color for app.
no setterinherited
back String
Back light color for app.
no setterinherited
backDark String
Back dark color for app.
no setterinherited
background String
Background color for app.
no setterinherited
backLight String
Back light color for app.
no setterinherited
bgColor String
BgColor for web.
no setterinherited
bgHoverColor String
BgHoverColor for web.
no setterinherited
brand String
Brand color for app.
no setterinherited
brandDark String
BrandDark color for app.
no setterinherited
brandLight String
Brand light color for app.
no setterinherited
button ButtonColors?
Button colors for app.
no setterinherited
chatInputBackground String
Chat input background color for app.
no setterinherited
copyWith → $ThemeCopyWith<Theme>
no setterinherited
error String
Error color for app.
no setterinherited
errorLight String
Error light color for app.
no setterinherited
font FontColors?
Font colors for app.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
icon IconColors?
Icon colors for app.
no setterinherited
input InputColors?
Input colors for app.
no setterinherited
mainAccent String
MainAccent for web.
no setterinherited
mainAccentHover String
MainAccentHover for web.
no setterinherited
mainLightAccent String
MainLightAccent for web.
no setterinherited
MainLink for web.
no setterinherited
message MessageColors?
Message colors for app.
no setterinherited
modalBackground String
Modal background color for app.
no setterinherited
mutedTextColor String
MutedTextColor for web.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
substrateBackground String
Substrate background color for app.
no setterinherited
success String
Success color for app.
no setterinherited
successLight String
Success light color for app.
no setterinherited
switcher SwitcherColors?
Switcher colors for app.
no setterinherited
tabBackground String
Tab background color for app.
no setterinherited
textColor String
TextColor for web.
no setterinherited
textOnAccentHoverColor String
TextOnAccentHoverColor for web.
no setterinherited
titleBackground String
Title background color for app.
no setterinherited
webBase WebBase?
WebBase colors for web.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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