lightTheme property
ThemeData
get
lightTheme
Implementation
static ThemeData get lightTheme {
return ThemeData(
brightness: Brightness.light,
primaryColor: const Color(0xFFB0BEC5),
floatingActionButtonTheme: const FloatingActionButtonThemeData(
foregroundColor: Color(0xFFFAFAFA),
backgroundColor: Color(0xFFB0BEC5),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
foregroundColor: WidgetStateProperty.all<Color>(Colors.indigo),
backgroundColor: WidgetStateProperty.all<Color>(Colors.indigoAccent),
),
),
fontFamily: 'Roboto',
textTheme: const TextTheme(
displayLarge: TextStyle(
fontSize: 25,
fontFamily: 'Roboto',
fontWeight: FontWeight.w600,
color: Colors.indigoAccent),
bodyLarge: TextStyle(
fontSize: 20, fontFamily: 'Roboto', color: Colors.indigoAccent),
bodyMedium: TextStyle(
fontSize: 15,
fontFamily: 'Roboto',
fontWeight: FontWeight.w300,
color: Colors.indigoAccent),
),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
selectedLabelStyle:
TextStyle(fontFamily: 'Roboto', color: Colors.indigoAccent),
unselectedLabelStyle:
TextStyle(fontFamily: 'Roboto', color: Colors.indigoAccent),
selectedItemColor: Colors.indigoAccent,
unselectedItemColor: Colors.indigoAccent,
),
colorScheme:
ColorScheme.fromSwatch().copyWith(secondary: const Color(0xFFB0BEC5)),
);
}