darkTheme static method
Implementation
static ThemeData darkTheme({Color? color}) => ThemeData(
useMaterial3: true,
primarySwatch: createMaterialColor(color ?? primaryColor),
primaryColor: color ?? primaryColor,
colorScheme: ColorScheme.fromSeed(seedColor: color ?? primaryColor, outlineVariant: borderColor),
appBarTheme: const AppBarTheme(
systemOverlayStyle: SystemUiOverlayStyle(statusBarIconBrightness: Brightness.light),
),
scaffoldBackgroundColor: scaffoldColorDark,
fontFamily: GoogleFonts.dmSans().fontFamily,
bottomNavigationBarTheme: const BottomNavigationBarThemeData(backgroundColor: scaffoldSecondaryDark),
iconTheme: const IconThemeData(color: Colors.white),
textTheme: GoogleFonts.dmSansTextTheme(),
dialogBackgroundColor: scaffoldSecondaryDark,
unselectedWidgetColor: Colors.white60,
bottomSheetTheme: BottomSheetThemeData(
shape: RoundedRectangleBorder(borderRadius: radiusOnly(topLeft: 30, topRight: 30)),
backgroundColor: scaffoldSecondaryDark,
),
dividerColor: dividerDarkColor,
floatingActionButtonTheme: FloatingActionButtonThemeData(backgroundColor: color ?? primaryColor),
cardColor: scaffoldSecondaryDark,
dialogTheme: DialogTheme(shape: dialogShape()),
navigationBarTheme: NavigationBarThemeData(labelTextStyle: MaterialStateProperty.all(primaryTextStyle(size: 10, color: Colors.white))),
).copyWith(
pageTransitionsTheme: const PageTransitionsTheme(
builders: <TargetPlatform, PageTransitionsBuilder>{
TargetPlatform.android: OpenUpwardsPageTransitionsBuilder(),
TargetPlatform.linux: OpenUpwardsPageTransitionsBuilder(),
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
},
),
);