lightTheme top-level property
Implementation
ThemeData lightTheme = ThemeData(
splashFactory: NoSplash.splashFactory,
useMaterial3: true,
colorScheme: lightColorScheme,
primarySwatch: Colors.blue,
scaffoldBackgroundColor: const Color(0xFFF2F2F6),
bottomSheetTheme:
const BottomSheetThemeData(backgroundColor: Color(0xFFF2F2F6)),
sliderTheme: const SliderThemeData(
trackHeight: 1,
thumbShape: RoundSliderThumbShape(elevation: 0, pressedElevation: 0)),
textTheme: const TextTheme(
bodyLarge: TextStyle(color: Color(0xFF000000)),
bodyMedium: TextStyle(color: Color(0xFF000000)),
bodySmall: TextStyle(color: Color(0xFF000000)),
titleLarge: TextStyle(color: Color(0xFF000000)),
titleMedium: TextStyle(color: Color(0xFF000000)),
titleSmall: TextStyle(color: Color(0xFF000000)),
),
datePickerTheme: DatePickerThemeData(
headerHelpStyle: const TextStyle(fontSize: 16),
headerHeadlineStyle:
const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
headerForegroundColor: const Color(0xFFe74c5d),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
),
dialogTheme: DialogThemeData(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10))),
appBarTheme: const AppBarTheme(
backgroundColor: Color(0xFFF2F2F6),
foregroundColor: Color(0xFF000000),
surfaceTintColor: Colors.transparent,
),
inputDecorationTheme: const InputDecorationTheme(
fillColor: Color(0xFFFFFFFF),
hintStyle: TextStyle(color: Color(0xFF999999)),
labelStyle: TextStyle(color: Color(0xFF999999)),
),
);