darkThemeData top-level property Null safety
Implementation
ThemeData get darkThemeData => ThemeData.dark().copyWith(
primaryColor: darkPrimaryColor,
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
shape: const RoundedRectangleBorder(),
foregroundColor: ThemeData.dark().textTheme.button!.color,
),
),
scaffoldBackgroundColor: darkBackground,
colorScheme: const ColorScheme.light().copyWith(
primary: darkPrimaryColor,
secondary: secondaryColor,
surface: Colors.grey.shade800,
),
);