Palette class
Model class for Themes can also make custom objects to pass on to various theme variable to any CometChat UI element
Constructors
- Palette.new({PaletteThemeModes mode = PaletteThemeModes.light, PaletteModel backGroundColor = const PaletteModel(light: Color(0xffFFFFFF), dark: Color(0xff141414)), PaletteModel primary = const PaletteModel(light: Color(0xff3399FF), dark: Color(0xff3399FF)), PaletteModel secondary = const PaletteModel(light: Color(0xffF8F8F8), dark: Color(0xff333333)), PaletteModel error = const PaletteModel(light: Color(0xffFF3B30), dark: Color(0xffFF3B30)), PaletteModel success = const PaletteModel(light: Color(0xff00C86F), dark: Color(0xff00C86F)), PaletteModel accent = const PaletteModel(light: Color(0xff141414), dark: Color(0xffFFFFFF)), PaletteModel option = const PaletteModel(light: Color(0xffFFC900), dark: Color(0xffFFC900)), PaletteModel? accent50, PaletteModel? accent100, PaletteModel? accent200, PaletteModel? accent300, PaletteModel? accent400, PaletteModel? accent500, PaletteModel? accent600, PaletteModel? accent700, PaletteModel? accent800, PaletteModel? primary200, PaletteModel? secondary900, PaletteModel tertiary = const PaletteModel(light: Colors.yellow, dark: Colors.yellow)})
-
Constructor
const
Properties
- accent → PaletteModel
-
accent color component used.
final
- accent100 → PaletteModel?
-
final
- accent200 → PaletteModel?
-
final
- accent300 → PaletteModel?
-
final
- accent400 → PaletteModel?
-
final
- accent50 → PaletteModel?
-
Optional parameters with different accents ranging from 50 to 800.
final
- accent500 → PaletteModel?
-
final
- accent600 → PaletteModel?
-
final
- accent700 → PaletteModel?
-
final
- accent800 → PaletteModel?
-
final
- backGroundColor → PaletteModel
-
List of gradient for background colour.
final
- error → PaletteModel
-
error color component with light and dark theme.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → PaletteThemeModes
-
light or dark two modes , by default light.
final
- option → PaletteModel
-
Primary color component with light and dark theme.
final
- primary → PaletteModel
-
Primary color component with light and dark theme.
final
- primary200 → PaletteModel?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondary → PaletteModel
-
Secondary color component with light and dark theme.
final
- secondary900 → PaletteModel?
-
final
- success → PaletteModel
-
success color component with light and dark theme.
final
- tertiary → PaletteModel
-
final
Methods
-
getAccent(
) → Color -
getAccent100(
) → Color -
getAccent200(
) → Color -
getAccent300(
) → Color -
getAccent400(
) → Color -
getAccent50(
) → Color -
getAccent500(
) → Color -
getAccent600(
) → Color -
getAccent700(
) → Color -
getAccent800(
) → Color -
getBackground(
) → Color - methods to get accent opacity according to mode
-
getError(
) → Color - Return primary colour's light or dark theme colour according to mode.
-
getOption(
) → Color -
getPrimary(
) → Color - Return primary colour's light or dark theme colour according to mode.
-
getPrimary200(
) → Color -
getSecondary(
) → Color -
getSecondary900(
) → Color -
getSuccess(
) → Color -
getTertiary(
) → Color -
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