darkTheme_default static method

ThemeData darkTheme_default()

Implementation

static ThemeData darkTheme_default() {
  final ThemeData themeData = ThemeData.dark();
  const colorScheme = ColorScheme.dark();

  final textTheme = Typography().white;
  // const Color.fromARGB(255, 228, 219, 219);
  return themeData.copyWith(
    primaryColor: const Color.fromARGB(255, 22, 22, 30),

    /// from vs code tokyo night theme
    shadowColor: const Color.fromARGB(255, 255, 255, 255).withAlpha(110),
    scaffoldBackgroundColor:
        const Color.fromARGB(255, 26, 27, 38), // old Colors.black,

    textTheme: textTheme
        .apply(fontFamily: "Poppins", package: "general_lib_assets_flutter")
        .copyWith(
            bodySmall: (textTheme.bodySmall ??
                    themeData.textTheme.bodySmall ??
                    const TextStyle())
                .copyWith(color: Colors.white)),
    indicatorColor: Colors.white,
    dialogBackgroundColor: const Color.fromARGB(255, 64, 64, 64),
    cardColor: Colors.grey,
    appBarTheme: themeData.appBarTheme.copyWith(
      backgroundColor: const Color.fromARGB(
          255, 22, 22, 30), // old themeData.scaffoldBackgroundColor,
      surfaceTintColor: const Color.fromARGB(
          255, 22, 22, 30), // old themeData.scaffoldBackgroundColor,
    ),
    colorScheme: colorScheme.copyWith(
      primary: Colors.white, // old const Color.fromARGB(255, 64, 64, 64),
      surface: const Color.fromARGB(255, 26, 27, 38),

      /// from vs code tokyo night theme
    ),
    highlightColor: Colors.cyan,
    textSelectionTheme: themeData.textSelectionTheme.copyWith(
      cursorColor: Colors.white,
      selectionColor: Colors.white.withOpacity(0.4),
    ),
  );
}