darkTheme property

TUIThemeData? darkTheme
final

The TUIThemeData 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.

Uses theme instead when null.

Implementation

final TUIThemeData? darkTheme;