DaySdkColors class
The host app's colors for the SDK screens. Only the brand, background and text colors are yours: colors with a meaning (errors, success, pending punches) stay the SDK's, so they read the same in every app. A color left null keeps Day.io's.
final scheme = Theme.of(context).colorScheme;
DaySdkColors(primary: scheme.primary, onPrimary: scheme.onPrimary, background: scheme.surface)
- Annotations
Constructors
Properties
- background → Color?
-
Behind every SDK screen. Day.io:
#FFFFFF.final - hashCode → int
-
The hash code for this object.
no setteroverride
- onPrimary → Color?
-
Text and icons on primary. Day.io:
#FFFFFF.final - onSurface → Color?
-
Main text and icons. Day.io:
#1E1F22.final - onSurfaceVariant → Color?
-
Secondary text: labels, weekdays, hints. Day.io:
#6E7179.final - primary → Color?
-
Primary buttons ("Clock now", "Add punch"), the selected day, check marks. Day.io:
#E2402E.final - primaryContainer → Color?
-
A light tint of primary: today in the calendar when another day is selected. Day.io:
#FCE4E1.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surface → Color?
-
Bottom sheets: punch type, location, time, calendar. Day.io:
#FFFFFF.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, int> -
What the native
DaySdkPalette.fromMapreads: 0xAARRGGBB per role, unset roles left out. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override