darkTheme property

  1. @override
ThemeData get darkTheme
override

The ThemeData to use when a 'dark mode' is requested by the system.

Some host platforms allow the users to select a system-wide 'dark mode', or the application may want to offer the user the ability to choose a dark theme just for this application. This is theme that will be used for such cases. themeMode will control which theme will be used.

This theme should have a ThemeData.brightness set to Brightness.dark.

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

See also:

Implementation

@override
ThemeData get darkTheme => get<IServiceTheme>().darkTheme;