lightTheme property
ThemeData
get
lightTheme
Implementation
static ThemeData get lightTheme {
final base = ThemeData(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(
seedColor: primaryColor,
brightness: Brightness.light,
),
);
return base.copyWith(
scaffoldBackgroundColor: canvasBackground,
appBarTheme: AppBarTheme(
backgroundColor: primaryColor,
foregroundColor: Colors.white,
elevation: 0,
centerTitle: false,
titleTextStyle: GoogleFonts.inter(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Colors.white,
),
iconTheme: const IconThemeData(color: Colors.white),
),
textTheme: GoogleFonts.interTextTheme(base.textTheme),
cardTheme: CardThemeData(
color: fieldCardBackground,
elevation: 1,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
side: const BorderSide(color: fieldCardBorder),
),
),
inputDecorationTheme: InputDecorationTheme(
isDense: true,
contentPadding: const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(6),
borderSide: const BorderSide(color: Color(0xFFDDDDDD)),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(6),
borderSide: const BorderSide(color: Color(0xFFDDDDDD)),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(6),
borderSide: const BorderSide(color: primaryColor, width: 1.5),
),
filled: true,
fillColor: Colors.white,
hintStyle: const TextStyle(
color: Color(0xFF9E9E9E),
fontSize: 13,
),
labelStyle: const TextStyle(fontSize: 13),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: primaryColor,
foregroundColor: Colors.white,
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
),
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
textStyle: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
),
),
),
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
foregroundColor: primaryColor,
side: const BorderSide(color: primaryColor),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
),
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
),
),
chipTheme: ChipThemeData(
backgroundColor: groupBackground,
selectedColor: primaryColor.withOpacity(0.15),
labelStyle: const TextStyle(fontSize: 12),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(6),
),
),
dividerTheme: const DividerThemeData(
color: Color(0xFFEEEEEE),
thickness: 1,
space: 1,
),
tooltipTheme: TooltipThemeData(
decoration: BoxDecoration(
color: const Color(0xFF424242),
borderRadius: BorderRadius.circular(4),
),
textStyle: const TextStyle(color: Colors.white, fontSize: 12),
),
);
}