darkTheme property

ThemeData darkTheme

The ThemeData to use when the platform specifically requests a dark themed UI.

Host platforms such as Android Pie can request a system-wide "dark mode" when entering battery saver mode.

When the host platform requests a Brightness.dark mode, you may want to supply a ThemeData.brightness that's also Brightness.dark.

Uses theme instead when null. Defaults to the value of ThemeData.light() when both darkTheme and theme are null.

See also:


final ThemeData darkTheme