dark property

ThemeData get dark

Implementation

ThemeData get dark {
  return ThemeData(
    useMaterial3: true,
    brightness: Brightness.dark,
    appBarTheme: AppBarTheme(
      backgroundColor: colorScheme
          .copyWith(brightness: Brightness.dark)
          .inversePrimary,
    ),
    colorScheme: colorScheme.copyWith(brightness: Brightness.dark),
    snackBarTheme: const SnackBarThemeData(
      behavior: SnackBarBehavior.floating,
    ),
    inputDecorationTheme: inputDecorationTheme,
    pageTransitionsTheme: pageTransitionsTheme,
  );
}