MSystemColor enum
A colour drawn from the user's own system theme.
On Android 12+ these resolve to the wallpaper-derived Material You palette,
so a widget picks up whatever the user has themed their phone to. Each is
semantic rather than a raw swatch, and each has a light and a dark form —
the same model MColor.hex already uses for dark:.
Values
- accent → const MSystemColor
-
The user's primary accent. Buttons, highlights, active states.
const MSystemColor('system_accent1_600', 'system_accent1_200') - accentMuted → const MSystemColor
-
A quieter companion to accent, for secondary emphasis.
const MSystemColor('system_accent2_600', 'system_accent2_200') - surface → const MSystemColor
-
Widget background, matching the system's themed surfaces.
const MSystemColor('system_neutral1_50', 'system_neutral1_900') - onSurface → const MSystemColor
-
Primary text and icons, legible on surface.
const MSystemColor('system_neutral1_900', 'system_neutral1_50') - onSurfaceMuted → const MSystemColor
-
Secondary text, dividers, and other de-emphasised marks.
const MSystemColor('system_neutral2_700', 'system_neutral2_200')
Properties
- androidDark → String
-
The
@android:color/...resource used in dark mode.final - androidLight → String
-
The
@android:color/...resource used in light mode.final - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
MSystemColor> - A constant List of the values in this enum, in order of their declaration.