The one M2 theme: quiet neutrals with a blue accent, light and dark, following the system brightness.
Guardrails (spec §5.4, checked by test/themes/plain_theme_test.dart):
- every key label ≥ 4.5:1 on its key fill;
- display text ≥ 3:1 (actually ≥ 4.5:1) on the background, as are the preview and error text;
- operators and
=differ from digits by more than colour: a heavier label weight, and=has a strongly contrasting fill.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Properties
- dark → CalcThemeData
-
Dark variant.
final
- highContrastDark → CalcThemeData
-
High-contrast dark variant (see highContrastLight): light key faces
on black, a yellow, heavier focus ring.
final
- highContrastLight → CalcThemeData
-
High-contrast light variant (platform High Contrast / Increase
Contrast, spec §4.4): key fills ≥ 3:1 against the background (the
keys' extent is visible), labels ≥ 4.5:1 on their fills,
=≥ 3:1 against the digit keys, preview and error text ≥ 7:1, a black, heavier focus ring.final - light → CalcThemeData
-
Light variant.
final
Static Methods
-
of(
Brightness? brightness, {bool highContrast = false}) → CalcThemeData -
light or dark (highContrastLight / highContrastDark when
highContrast); null means light.