getDatePickerThemeData static method

ThemeData getDatePickerThemeData(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. UpColorType? colorType,
})

Implementation

static ThemeData getDatePickerThemeData(
  BuildContext context, {
  UpStyle? override,
  UpStyle? style,
  UpColorType? colorType,
}) {
  return ThemeData(
    colorScheme: ColorScheme(
      onBackground: Colors.transparent,
      background: Colors.transparent,
      onError: Colors.pink,
      error: Colors.red,
      onSecondary: Colors.transparent,
      secondary: Colors.transparent,
      brightness: Brightness.dark,
      primary: getDatePickerPrimaryColor(
        context,
        style: style,
        colorType: colorType,
      ),
      onPrimary: getDatePickerOnPrimaryColor(
        context,
        style: style,
        colorType: colorType,
      ),
      surface: getDatePickerSurfaceColor(
        context,
        style: style,
        colorType: colorType,
      ),
      onSurface: getDatePickerOnSurfaceColor(
        context,
        style: style,
        colorType: colorType,
      ),
    ),
    dialogBackgroundColor: getDatePickerDialogBackgroundColor(
      context,
      style: style,
      colorType: colorType,
    ),
  );
}