brightness

Brightness

dark

When a CupertinoTheme uses the above CupertinoThemeData,
dark mode is enabled for all its Cupertino descendants
that are affected by this CupertinoTheme.

Timeline

Landed in version: 1.16.3
In stable release: 1.17

References

Design doc:

Make CupertinoThemeData.brightness nullable

API documentation:

CupertinoThemeData.brightness

Relevant issue:

Issue 47255

Relevant PR:

Let material ThemeData dictate brightness if cupertinoOverrideTheme.brightness is null