of static method

ThemeData of(
  1. BuildContext context
)

Implementation

static ThemeData of(BuildContext context) {
  return theme.copyWith(
      useMaterial3: false,
      brightness: Brightness.dark,
      scaffoldBackgroundColor: primary,
      appBarTheme: theme.appBarTheme.copyWith(
          iconTheme: const IconThemeData(color: Colors.white),
          backgroundColor: primary,
          titleTextStyle: const TextStyle(color: Colors.white, fontSize: 18),
          centerTitle: true),
      inputDecorationTheme: theme.inputDecorationTheme.copyWith(
          enabledBorder: const OutlineInputBorder(
        borderSide: BorderSide(color: secondary, width: 2),
      )),
      colorScheme: theme.colorScheme.copyWith(
          brightness: Brightness.dark,
          primary: Colors.white,
          secondary: secondary,
          error: danger,
          outline: Colors.white10));
}