buildDarkTheme function
Implementation
ThemeData buildDarkTheme(BuildContext context, WidgetRef ref) => ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
colorScheme: ColorScheme.fromSeed(
brightness: Brightness.dark,
seedColor: Colors.white,
primary: ref.watch(brandColorProvider),
),
// shared
textTheme: GoogleFonts.jetBrainsMonoTextTheme(ThemeData.dark().textTheme),
filledButtonTheme: kFilledButtonTheme,
outlinedButtonTheme: kOutlinedButtonTheme,
drawerTheme: kDrawerTheme,
cardTheme: kCardTheme,
inputDecorationTheme: kInputTheme,
listTileTheme: ListTileThemeData(
selectedColor: Colors.white,
selectedTileColor: ref.watch(brandColorProvider),
),
extensions: [
buildSandboxedTheme(context, ref),
],
);