makeDarkTheme method

  1. @override
ThemeData makeDarkTheme({
  1. required BuildContext context,
})
override

Implementation

@override
ThemeData makeDarkTheme({required BuildContext context}) {
  return ThemeData(
    brightness: Brightness.dark,
    primaryColor: const Color.fromARGB(255, 209, 154, 102),
    primaryTextTheme: const TextTheme(
      bodyLarge: TextStyle(),
      bodyMedium: TextStyle(),
      headlineSmall: TextStyle(fontWeight: FontWeight.bold),
      bodySmall: TextStyle(fontStyle: FontStyle.normal, fontSize: 13),
    ).apply(
      bodyColor: const Color.fromARGB(255, 151, 159, 173),
      decorationColor: const Color.fromARGB(255, 151, 159, 173),
    ),
    cardColor: const Color.fromARGB(255, 47, 51, 61),
    dialogBackgroundColor: const Color.fromARGB(255, 30, 30, 30),
    disabledColor: const Color.fromARGB(255, 98, 114, 164),
    canvasColor: const Color.fromARGB(255, 40, 42, 54),
    unselectedWidgetColor: const Color.fromARGB(255, 98, 114, 164),
    colorScheme: const ColorScheme.dark(
      background: Color.fromARGB(255, 40, 44, 52),
      onPrimary: Color.fromARGB(255, 209, 154, 102),
      primary: Color.fromARGB(255, 209, 154, 102),
      secondary: Color.fromARGB(255, 40, 42, 54),
    ),
    inputDecorationTheme: const InputDecorationTheme(
      enabledBorder: OutlineInputBorder(
          borderSide: BorderSide(color: Color.fromARGB(255, 98, 114, 164))),
      focusedBorder: OutlineInputBorder(
          borderSide: BorderSide(color: Color.fromARGB(255, 255, 121, 197))),
      labelStyle: TextStyle(color: Color.fromARGB(255, 151, 159, 173)),
      prefixStyle: TextStyle(color: Color.fromARGB(255, 151, 159, 173)),
      suffixStyle: TextStyle(color: Color.fromARGB(255, 151, 159, 173)),
    ),
    textTheme: const TextTheme(
      bodyLarge: TextStyle(),
      bodyMedium: TextStyle(),
      headlineSmall: TextStyle(fontWeight: FontWeight.bold),
      bodySmall: TextStyle(fontStyle: FontStyle.normal, fontSize: 13),
    ).apply(
      bodyColor: const Color.fromARGB(255, 151, 159, 173),
      decorationColor: const Color.fromARGB(255, 151, 159, 173),
    ),
    iconTheme: Theme.of(context).iconTheme.copyWith(
          color: const Color.fromARGB(255, 151, 159, 173),
        ),
    appBarTheme: const AppBarTheme(
      color: Color.fromARGB(255, 40, 44, 52),
    ),
    //visualDensity: VisualDensity.adaptivePlatformDensity,
  );
}