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